diff --git a/usr.sbin/pppctl/pppctl.c b/usr.sbin/pppctl/pppctl.c index 3f14a6b1ec12..753b32e94020 100644 --- a/usr.sbin/pppctl/pppctl.c +++ b/usr.sbin/pppctl/pppctl.c @@ -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(""); }