summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-15 19:05:27 +0000
committerbrian <brian@FreeBSD.org>1998-06-15 19:05:27 +0000
commit4ea5840027f56ea4075ff02e0ab45e168d292ec8 (patch)
treea19788af57c1c514975a36a764ee996d206dbeac /usr.sbin/ppp/main.c
parentd0b2b1163f0060c908f4d9de9bd704e4820707ad (diff)
downloadFreeBSD-src-4ea5840027f56ea4075ff02e0ab45e168d292ec8.zip
FreeBSD-src-4ea5840027f56ea4075ff02e0ab45e168d292ec8.tar.gz
Make `close lcp' just close the LCP layer and not hangup. This is
useful for slirp users that wish to get their shell back after the ppp session. `close' with no args still hangs up as expected. Required by: jmz
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 0a978f3..1a3749c 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.129 1998/05/29 18:33:09 brian Exp $
+ * $Id: main.c,v 1.130 1998/06/06 20:50:57 brian Exp $
*
* TODO:
*/
@@ -90,7 +90,7 @@ Cleanup(int excode)
{
SignalBundle->CleaningUp = 1;
if (bundle_Phase(SignalBundle) != PHASE_DEAD)
- bundle_Close(SignalBundle, NULL, 1);
+ bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);
}
void
@@ -98,7 +98,7 @@ AbortProgram(int excode)
{
server_Close(SignalBundle);
log_Printf(LogPHASE, "PPP Terminated (%s).\n", ex_desc(excode));
- bundle_Close(SignalBundle, NULL, 1);
+ bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);
bundle_Destroy(SignalBundle);
log_Close();
exit(excode);
OpenPOWER on IntegriCloud