aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-03-08 10:04:21 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-03-08 10:04:21 +0000
commit06257ca4f40e047b418a2742ac6829b40bbccf46 (patch)
tree58ed4b587fe75aca4b3bd7a1676589a597069c48
parentee5f208d638af3d0dcab526c5821eb6abf0c09d4 (diff)
Notes
-rw-r--r--usr.sbin/ppp/chat.c8
-rw-r--r--usr.sbin/ppp/main.c10
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c
index a66aa18d7b17d..ccc7f6abc1f3d 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 d9df828277c7e..c95258f94bbb7 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)
{