From b3409b1e8c3460f9f5c102e31f3eedcd2c7dd905 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 9 Aug 1999 23:38:56 +0000 Subject: Remove CLOCAL when we're not in -dedicated mode. PR: 13046 Submitted by: Vsevolod Lobko --- usr.sbin/ppp/tty.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp') diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c index 4cf7192..0bd64d3 100644 --- a/usr.sbin/ppp/tty.c +++ b/usr.sbin/ppp/tty.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tty.c,v 1.9 1999/06/05 21:35:57 brian Exp $ + * $Id: tty.c,v 1.10 1999/08/06 20:04:07 brian Exp $ */ #include @@ -204,8 +204,10 @@ tty_Raw(struct physical *p) else ios.c_cflag |= CLOCAL; - if (p->type != PHYS_DEDICATED) + if (p->type != PHYS_DEDICATED) { ios.c_cflag |= HUPCL; + ios.c_cflag &= ~CLOCAL; + } tcsetattr(p->fd, TCSANOW, &ios); } @@ -410,8 +412,10 @@ tty_Create(struct physical *p) ios.c_iflag |= IXOFF; } ios.c_iflag |= IXON; - if (p->type != PHYS_DEDICATED) + if (p->type != PHYS_DEDICATED) { ios.c_cflag |= HUPCL; + ios.c_cflag &= ~CLOCAL; + } if (p->type != PHYS_DIRECT) { /* Change tty speed when we're not in -direct mode */ -- cgit v1.1