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_3_0_0_beta0~758 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dafd1daeb15c030d32952c6b43ab0855b5d8d3e4;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 0c78a6ef523..e8571a92070 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -505,6 +505,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);