From: Alan T. DeKok Date: Tue, 21 Jun 2011 09:23:56 +0000 (+0200) Subject: If a child process gets a signal to exit, then just exit. X-Git-Tag: release_2_1_12~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e970945ce1c6ecc8552cada868bfbecdb41d3b9;p=thirdparty%2Ffreeradius-server.git If a child process gets a signal to exit, then just exit. --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 56759bd4105..2a4562549d1 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -497,6 +497,8 @@ static void NEVER_RETURNS usage(int status) */ static void sig_fatal(int sig) { + if (getpid() != radius_pid) _exit(sig); + switch(sig) { case SIGTERM: radius_signal_self(RADIUS_SIGNAL_SELF_TERM);