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:
Brian Somers 2001-03-25 20:06:08 +00:00
parent 7b98a1d680
commit 2da5df67a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74793

View File

@ -622,6 +622,11 @@ main(int argc, char **argv)
if (next)
start = ++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)
puts("");
}