summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pppd/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c
index 77a643b7173..6a8b6988396 100644
--- a/usr.sbin/pppd/main.c
+++ b/usr.sbin/pppd/main.c
@@ -18,7 +18,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: main.c,v 1.1 1995/10/18 08:47:59 deraadt Exp $";
+static char rcsid[] = "$Id: main.c,v 1.2 1995/12/28 14:05:06 hannken Exp $";
#endif
#include <stdio.h>
@@ -582,10 +582,13 @@ void
close_fd()
{
disestablish_ppp();
+ sleep(1);
/* drop dtr to hang up */
- if (modem)
+ if (modem) {
setdtr(fd, FALSE);
+ sleep(1);
+ }
if (initfdflags != -1 && fcntl(fd, F_SETFL, initfdflags) < 0)
syslog(LOG_WARNING, "Couldn't restore device fd flags: %m");