diff options
author | brian <brian@FreeBSD.org> | 1998-06-18 22:43:18 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-18 22:43:18 +0000 |
commit | ac4ff7f0613a8e1c98d7b9eecdff122be55b9d4c (patch) | |
tree | 584bf6262c8ee4d3bcf352bac16882802f95f8e8 | |
parent | 1ae078b0a3c081ef8dd3be3fda4723d7df1f700e (diff) | |
download | FreeBSD-src-ac4ff7f0613a8e1c98d7b9eecdff122be55b9d4c.zip FreeBSD-src-ac4ff7f0613a8e1c98d7b9eecdff122be55b9d4c.tar.gz |
Don't assume that all ttys support carrier detect. If we're
passing our controlling terminal, always record our pid so
that the receiving ppp knows who to HUP.
-rw-r--r-- | usr.sbin/ppp/modem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index e96567c..605289e 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.90 1998/06/15 19:06:21 brian Exp $ + * $Id: modem.c,v 1.91 1998/06/16 19:40:39 brian Exp $ * * TODO: */ @@ -1062,9 +1062,9 @@ modem2iov(struct physical *p, struct iovec *iov, int *niov, int maxiov, if (p->Timer.state != TIMER_STOPPED) { timer_Stop(&p->Timer); p->Timer.state = TIMER_RUNNING; /* Special - see iov2modem() */ - if (tcgetpgrp(p->fd) == getpgrp()) - p->session_owner = getpid(); /* So I'll eventually get HUP'd */ } + if (tcgetpgrp(p->fd) == getpgrp()) + p->session_owner = getpid(); /* So I'll eventually get HUP'd */ timer_Stop(&p->link.throughput.Timer); modem_ChangedPid(p, newpid); } |