]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If a child process gets a signal to exit, then just exit.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jun 2011 09:23:56 +0000 (11:23 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jun 2011 09:24:43 +0000 (11:24 +0200)
src/main/radiusd.c

index 0c78a6ef5230a10b689b77af94ce399268b7bdfe..e8571a92070b18c8c1c197764026bbb5ed76f5ff 100644 (file)
@@ -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);