From ac37ab22eb8a99f65b80c39d7ba8bc9ec4894aeb Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 13 May 1999 16:34:57 +0000 Subject: [PATCH] Ignore repeated signals sent to the parent in background mode. --- usr.sbin/ppp/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index e0c09c34854..fb79b261069 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.153 1999/04/26 08:54:34 brian Exp $ + * $Id: main.c,v 1.154 1999/05/08 11:07:05 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); }