From 24c0b3449f95a4f86c9605cea3407fc106527fb8 Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 28 Apr 1993 23:13:37 +0000 Subject: fixed: SLATTACH hangs up on connect to modem port reported by: bugs@rafal.slip.uiuc.edu --- sbin/slattach/slattach.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sbin/slattach') 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 @@ -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) { -- cgit