summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-03-13 14:53:55 +0000
committerbrian <brian@FreeBSD.org>1997-03-13 14:53:55 +0000
commitccae52be0e9d2b421203eecf2021979143b75798 (patch)
treeb65dc6e6b670a0c15db3ea4a5fce47b5518cf2d1 /usr.sbin/ppp/main.c
parent1c4cdc1a36e9685f475367263a86a335a9e417b2 (diff)
downloadFreeBSD-src-ccae52be0e9d2b421203eecf2021979143b75798.zip
FreeBSD-src-ccae52be0e9d2b421203eecf2021979143b75798.tar.gz
Requested by: Harlan Stenn <Harlan.Stenn@pfcs.com>
Accept SIGHUP as a "re-open logfile" signal. As ppp doesn't set it's serial line to it's controlling terminal, we can use HUP :) This is a candidate for 2.2. The log.[ch] changes won't conflict, but the main.c changes will. We just want to change the kill(...,SIGHUP) to a SIGTERM and change the signal(SIGHUP,Hangup) to a pending_signal(SIGHUP,LogReOpen).
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 6e83847..1634273 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.37 1997/03/10 06:21:01 ache Exp $
+ * $Id: main.c,v 1.38 1997/03/13 12:45:30 brian Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -187,7 +187,7 @@ int signo;
abort();
}
if (BGPid) {
- kill (BGPid, SIGHUP);
+ kill (BGPid, SIGTERM);
exit (EX_HANGUP);
}
else {
@@ -349,7 +349,7 @@ char **argv;
tcgetattr(0, &oldtio); /* Save original tty mode */
- signal(SIGHUP, Hangup);
+ pending_signal(SIGHUP, LogReOpen);
pending_signal(SIGTERM, CloseSession);
pending_signal(SIGINT, CloseSession);
pending_signal(SIGQUIT, CloseSession);
OpenPOWER on IntegriCloud