summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@openbsd.org>1999-05-13 16:33:32 +0000
committerbrian <brian@openbsd.org>1999-05-13 16:33:32 +0000
commit99262dc5e02ffa4bad018b9f2033b762368c4f26 (patch)
tree9f0bdf41a4d18209cd14cf768d30a926c67adbde
parentCompensate for the check for onwership of unicast packets in promiscuous (diff)
downloadwireguard-openbsd-99262dc5e02ffa4bad018b9f2033b762368c4f26.tar.xz
wireguard-openbsd-99262dc5e02ffa4bad018b9f2033b762368c4f26.zip
Ignore repeated signals sent to the parent in background
mode.
-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);
}