[sr-dev] git:4.3:f07d47d7: core: relocate dbg message before killing children at shut down

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 23 16:31:41 CET 2015


Module: kamailio
Branch: 4.3
Commit: f07d47d7d413a1dbc4da779d7c274f88e01058e6
URL: https://github.com/kamailio/kamailio/commit/f07d47d7d413a1dbc4da779d7c274f88e01058e6

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-23T16:26:36+01:00

core: relocate dbg message before killing children at shut down

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

(cherry picked from commit 5a142f7cc2899090b007654529f08b1b2f4e70b1)

---

Modified: main.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f07d47d7d413a1dbc4da779d7c274f88e01058e6.diff
Patch: https://github.com/kamailio/kamailio/commit/f07d47d7d413a1dbc4da779d7c274f88e01058e6.patch

---

diff --git a/main.c b/main.c
index 30519fb..5b37ec8 100644
--- a/main.c
+++ b/main.c
@@ -742,9 +742,9 @@ void handle_sigs(void)
 			}
 			LM_INFO("terminating due to SIGCHLD\n");
 #endif
+			LM_DBG("terminating due to SIGCHLD\n");
 			/* exit */
 			shutdown_children(SIGTERM, 1);
-			LM_DBG("terminating due to SIGCHLD\n");
 			if (WIFSIGNALED(chld_status)) {
 				exit(1);
 			} else {




More information about the sr-dev mailing list