summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1999-05-13 16:33:33 +0000
committerbrian <brian@cvs.openbsd.org>1999-05-13 16:33:33 +0000
commit2c6de5e53344ff808e5292d6014682176dc66c8c (patch)
tree9b324b66048d678761be2a58510e790bce0ad886 /usr.sbin
parent0bee46841bdbef18c0aa0d7a4f4db10968a7160d (diff)
Ignore repeated signals sent to the parent in background
mode.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ppp/main.c b/usr.sbin/ppp/ppp/main.c
index 8e1c764c9fe..f85c4adb490 100644
--- a/usr.sbin/ppp/ppp/main.c
+++ b/usr.sbin/ppp/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.12 1999/05/08 11:06:37 brian Exp $
+ * $Id: main.c,v 1.13 1999/05/13 16:33:32 brian Exp $
*
* TODO:
*/
@@ -134,6 +134,7 @@ static pid_t BGPid = 0;
static void
KillChild(int signo)
{
+ signal(signo, SIG_IGN);
log_Printf(LogPHASE, "Parent: Signal %d\n", signo);
kill(BGPid, SIGINT);
}