Issue a ``quit'' after other ppp commands given on the command line and
then wait for the connection to be closed by the peer. This means that commands such as ``pppctl ... show links'' will display the correct output again (rather than truncating it depending on how much data arrived in the last packet).
This commit is contained in:
parent
7b98a1d680
commit
2da5df67a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74793
@ -622,6 +622,11 @@ main(int argc, char **argv)
|
|||||||
if (next)
|
if (next)
|
||||||
start = ++next;
|
start = ++next;
|
||||||
} while (next && *next);
|
} while (next && *next);
|
||||||
|
if (verbose)
|
||||||
|
write(1, "quit\n", 5);
|
||||||
|
write(fd, "quit\n", 5);
|
||||||
|
while (Receive(fd, verbose | REC_SHOW) == 0)
|
||||||
|
;
|
||||||
if (verbose)
|
if (verbose)
|
||||||
puts("");
|
puts("");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user