Kill children only if we have children
authorAlan T. DeKok <aland@freeradius.org>
Sat, 6 Sep 2008 12:16:43 +0000 (14:16 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 6 Sep 2008 12:16:43 +0000 (14:16 +0200)
src/main/radiusd.c

index 49dfef0..ffb7c6a 100644 (file)
@@ -412,7 +412,7 @@ int main(int argc, char *argv[])
         *      ignored.)
         */
 #ifndef __MINGW32__
-       kill(-radius_pid, SIGTERM);
+       if (spawn_flag) kill(-radius_pid, SIGTERM);
 #endif
        
        /*