summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-03-08 10:04:21 +0000
committerache <ache@FreeBSD.org>1997-03-08 10:04:21 +0000
commite33ad1e9d54661d60f504fd286e0cfd3139c66cc (patch)
tree1e7df745f5739f20b01f0349e5ef14a925896aa1 /usr.sbin/ppp/main.c
parentcd4948fc0c6ab4d141ab0f15d6771a9b5e4b4ea7 (diff)
downloadFreeBSD-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/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c10
1 files changed, 5 insertions, 5 deletions
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)
{
OpenPOWER on IntegriCloud