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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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 {


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to