summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-05 23:45:15 +0000
committerbrian <brian@FreeBSD.org>1997-05-05 23:45:15 +0000
commit7394cdac990f67fec226d3af9c0cfd828880903f (patch)
tree045132b9f79167522f0bd44cf7caff8c35df185f /usr.sbin
parentf94a577a72115bb3c2e2bde28ad844fcc7faca23 (diff)
downloadFreeBSD-src-7394cdac990f67fec226d3af9c0cfd828880903f.zip
FreeBSD-src-7394cdac990f67fec226d3af9c0cfd828880903f.tar.gz
Make ppp exit on loss of carrier in -background mode.
Submitted by: Jim Carroll <jim@carroll.com>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/lcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c
index 13b9f30..5b5a5c6 100644
--- a/usr.sbin/ppp/lcp.c
+++ b/usr.sbin/ppp/lcp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: lcp.c,v 1.12 1997/02/22 16:10:23 peter Exp $
+ * $Id: lcp.c,v 1.13 1997/03/13 21:22:06 brian Exp $
*
* TODO:
* o Validate magic number received from peer.
@@ -134,7 +134,7 @@ int new;
}
break;
case PHASE_DEAD:
- if (mode & MODE_DIRECT)
+ if (mode & (MODE_DIRECT|MODE_BACKGROUND))
Cleanup(EX_DEAD);
break;
}
OpenPOWER on IntegriCloud