diff options
author | ache <ache@FreeBSD.org> | 1997-03-08 10:04:21 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-08 10:04:21 +0000 |
commit | e33ad1e9d54661d60f504fd286e0cfd3139c66cc (patch) | |
tree | 1e7df745f5739f20b01f0349e5ef14a925896aa1 /usr.sbin | |
parent | cd4948fc0c6ab4d141ab0f15d6771a9b5e4b4ea7 (diff) | |
download | FreeBSD-src-e33ad1e9d54661d60f504fd286e0cfd3139c66cc.zip FreeBSD-src-e33ad1e9d54661d60f504fd286e0cfd3139c66cc.tar.gz |
Unpend all killing signals to shut down this thing immediately,
or it is impossible to kill it in some situations.
Unpend yet one SIGARLM (see timer.c commit)
Should go into 2.2
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/chat.c | 8 | ||||
-rw-r--r-- | usr.sbin/ppp/main.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index a66aa18..ccc7f6a 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -18,7 +18,7 @@ * Columbus, OH 43221 * (614)451-1883 * - * $Id: chat.c,v 1.16 1997/02/22 16:10:06 peter Exp $ + * $Id: chat.c,v 1.17 1997/02/25 14:04:55 brian Exp $ * * TODO: * o Support more UUCP compatible control sequences. @@ -404,9 +404,9 @@ char *command, *out; pipe(fids); pid = fork(); if (pid == 0) { - pending_signal(SIGINT, SIG_DFL); - pending_signal(SIGQUIT, SIG_DFL); - pending_signal(SIGTERM, SIG_DFL); + signal(SIGINT, SIG_DFL); + signal(SIGQUIT, SIG_DFL); + signal(SIGTERM, SIG_DFL); pending_signal(SIGHUP, SIG_DFL); close(fids[0]); dup2(fids[1], 1); diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index d9df828..c95258f 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.32 1997/02/22 16:10:32 peter Exp $ + * $Id: main.c,v 1.33 1997/02/25 14:05:03 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -349,9 +349,9 @@ char **argv; tcgetattr(0, &oldtio); /* Save original tty mode */ pending_signal(SIGHUP, Hangup); - pending_signal(SIGTERM, CloseSession); - pending_signal(SIGINT, CloseSession); - pending_signal(SIGQUIT, CloseSession); + signal(SIGTERM, CloseSession); + signal(SIGINT, CloseSession); + signal(SIGQUIT, CloseSession); #ifdef SIGSEGV pending_signal(SIGSEGV, Hangup); #endif @@ -359,7 +359,7 @@ char **argv; pending_signal(SIGPIPE, Hangup); #endif #ifdef SIGALRM - pending_signal(SIGALRM, SIG_IGN); + signal(SIGALRM, SIG_IGN); #endif if(mode & MODE_INTER) { |