diff options
| author | cgd <cgd@NetBSD.org> | 1993-04-28 23:13:37 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-04-28 23:13:37 +0000 |
| commit | 24c0b3449f95a4f86c9605cea3407fc106527fb8 (patch) | |
| tree | 7f170409bac0fbfbc63b96428e71ee2399c3f026 /sbin/slattach | |
| parent | 1184357971a4d338b90d8bc73496fe99fd74828d (diff) | |
fixed:
SLATTACH hangs up on connect to modem port
reported by: bugs@rafal.slip.uiuc.edu
Diffstat (limited to 'sbin/slattach')
| -rw-r--r-- | sbin/slattach/slattach.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c index 0d95c858d2f..83b6f9130f6 100644 --- a/sbin/slattach/slattach.c +++ b/sbin/slattach/slattach.c @@ -58,7 +58,7 @@ char copyright[] = #ifndef lint static char sccsid[] = "@(#)slattach.c 4.6 (Berkeley) 6/1/90"; -static char rcsid[] = "$Header: /cvsroot/src/sbin/slattach/slattach.c,v 1.4 1993/04/08 04:15:43 cgd Exp $"; +static char rcsid[] = "$Header: /cvsroot/src/sbin/slattach/slattach.c,v 1.5 1993/04/28 23:13:37 cgd Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -162,6 +162,12 @@ int main(int argc, char **argv) exit(1); } + if (ioctl(fd, TIOCSDTR) < 0) { + perror("ioctl(TIOCSDTR)"); + close(fd); + exit(1); + } + cfsetispeed(&tty, speed); cfsetospeed(&tty, speed); if (tcsetattr(fd, TCSADRAIN, &tty) < 0) { |
