summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-05-13 16:34:57 +0000
committerbrian <brian@FreeBSD.org>1999-05-13 16:34:57 +0000
commit50dbd19d74c00f6716870be6dca6b223a5bce220 (patch)
tree3878a541bf597d66f84602eaf5efbe7e105fdcc2 /usr.sbin/ppp
parent5f94d43a016c1c1d640336bbc2536e7fb3dd3736 (diff)
downloadFreeBSD-src-50dbd19d74c00f6716870be6dca6b223a5bce220.zip
FreeBSD-src-50dbd19d74c00f6716870be6dca6b223a5bce220.tar.gz
Ignore repeated signals sent to the parent in background
mode.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index e0c09c3..fb79b26 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);
}
OpenPOWER on IntegriCloud