summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/log.h
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/log.h
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/log.h')
-rw-r--r--usr.sbin/ppp/log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/log.h b/usr.sbin/ppp/log.h
index 7ac5df2..d56b77b 100644
--- a/usr.sbin/ppp/log.h
+++ b/usr.sbin/ppp/log.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id$
+ * $Id: log.h,v 1.8 1997/02/22 16:10:27 peter Exp $
*
* TODO:
*/
@@ -62,6 +62,7 @@ extern int loglevel;
extern void LogTimeStamp __P((void));
extern int LogOpen __P((void));
+extern void LogReOpen __P((int));
extern void DupLog __P((void));
extern void LogClose __P((void));
extern void logprintf __P((char *, ...)), LogPrintf __P((int, char *, ...));
OpenPOWER on IntegriCloud