[sr-dev] git:master:5a142f7c: core: relocate dbg message before killing children at shut down

Daniel-Constantin Mierla miconda at gmail.com
Sun Nov 22 10:04:32 CET 2015


Module: kamailio
Branch: master
Commit: 5a142f7cc2899090b007654529f08b1b2f4e70b1
URL: https://github.com/kamailio/kamailio/commit/5a142f7cc2899090b007654529f08b1b2f4e70b1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-22T10:02: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

---

Modified: main.c

---

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

---

diff --git a/main.c b/main.c
index 94f64ff..da30f12 100644
--- a/main.c
+++ b/main.c
@@ -752,9 +752,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