1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

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.
This commit is contained in:
Brian Somers 1998-06-18 22:43:18 +00:00
parent cf6961e696
commit 1181eb8216
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37053

View File

@ -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);
}