diff options
author | ache <ache@FreeBSD.org> | 1996-03-30 18:27:45 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-03-30 18:27:45 +0000 |
commit | 42d182a2a9fb9e689db254ec8fe2de01e1008876 (patch) | |
tree | 704251b26e638082024597d1e7e6252aaa0fca54 /usr.sbin/ppp/main.c | |
parent | a7b560c87864827518723b41c6cdf79b46ddd214 (diff) | |
download | FreeBSD-src-42d182a2a9fb9e689db254ec8fe2de01e1008876.zip FreeBSD-src-42d182a2a9fb9e689db254ec8fe2de01e1008876.tar.gz |
Put signal number into logfile
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r-- | usr.sbin/ppp/main.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index f80b6b2..e371d49 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.15 1996/03/08 09:03:05 ache Exp $ + * $Id: main.c,v 1.16 1996/03/09 08:18:38 ache Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -167,16 +167,18 @@ int excode; } static void -Hangup() +Hangup(signo) +int signo; { - LogPrintf(LOG_PHASE, "SIGHUP\n"); + LogPrintf(LOG_PHASE, "Signal %d, hangup.\n", signo); Cleanup(EX_HANGUP); } static void -CloseSession() +CloseSession(signo) +int signo; { - LogPrintf(LOG_PHASE, "SIGTERM\n"); + LogPrintf(LOG_PHASE, "Signal %d, terminate.\n", signo); LcpClose(); Cleanup(EX_TERM); } |