Browse code

core: relocate dbg message before killing children at shut down

- can race with per module log level, debugger module can be destroyed

Daniel-Constantin Mierla authored on 22/11/2015 09:02:36
Showing 1 changed files
... ...
@@ -752,9 +752,9 @@ void handle_sigs(void)
752 752
 			}
753 753
 			LM_INFO("terminating due to SIGCHLD\n");
754 754
 #endif
755
+			LM_DBG("terminating due to SIGCHLD\n");
755 756
 			/* exit */
756 757
 			shutdown_children(SIGTERM, 1);
757
-			LM_DBG("terminating due to SIGCHLD\n");
758 758
 			if (WIFSIGNALED(chld_status)) {
759 759
 				exit(1);
760 760
 			} else {