Subject: bin/1858: pppd doesn't drop DTR long enough
To: None <gnats-bugs@gnats.netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: netbsd-bugs
Date: 12/26/1995 10:13:38
>Number: 1858
>Category: bin
>Synopsis: pppd doesn't drop DTR long enough
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 26 04:35:01 1995
>Last-Modified:
>Originator: Juergen Hannken-Illjes
>Organization:
TU Braunschweig; Abt. EIS; Germany
>Release: NetBSD-current as of Dec 22.
>Environment:
System: NetBSD home 1.1A NetBSD 1.1A (CUSTOM) #0: Tue Dec 26 00:45:40 MET 1995 hannken@home:/usr/src/sys/arch/i386/compile/CUSTOM i386
>Description:
pppd doesn't drop DTR long enough to be detected.
>How-To-Repeat:
>Fix:
--- /usr/src/usr.sbin/pppd/main.c.orig Sat Oct 14 05:05:33 1995
+++ /usr/src/usr.sbin/pppd/main.c Sun Dec 24 14:30:46 1995
@@ -581,12 +581,15 @@
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");
initfdflags = -1;
>Audit-Trail:
>Unformatted: