diff options
author | ache <ache@FreeBSD.org> | 1993-12-11 00:36:14 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1993-12-11 00:36:14 +0000 |
commit | 26f4641e6c6418e1dfeaf8e8c7226361a2a7b471 (patch) | |
tree | f266a745c4c2c98ccc3040cacc930a6c88343916 /sys/dev/sio/sio.c | |
parent | 5d03fae86872789f9b375177304500c89bc4b46e (diff) | |
download | FreeBSD-src-26f4641e6c6418e1dfeaf8e8c7226361a2a7b471.zip FreeBSD-src-26f4641e6c6418e1dfeaf8e8c7226361a2a7b471.tar.gz |
Force HUPCL in bidirectional port open.
This don't allow it hangs forever.
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 819d362..194ce00 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.16 1993/11/25 01:31:48 wollman Exp $ + * $Id: sio.c,v 1.17 1993/12/09 17:24:19 ache Exp $ */ #include "sio.h" @@ -668,11 +668,13 @@ bidir_open_top: tp->t_ispeed = tp->t_ospeed = comdefaultrate; } #ifdef COM_BIDIR - if (com->bidir) + if (com->bidir) { if (callout) tp->t_cflag |= CLOCAL; else tp->t_cflag &= ~CLOCAL; + tp->t_cflag |= HUPCL; + } #endif (void) commctl(com, MCR_DTR | MCR_RTS, DMSET); error = comparam(tp, &tp->t_termios); |