Module: sip-router
Branch: master
Commit: 724a642d99becfe674a8af62b4d80a67a9097608
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=724a642…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Oct 9 12:16:13 2011 +0200
core: move exit salutation before killing children
- syslog() is not re-entrant (see linux man page) and can cause troubles
- some that could be related is reported by Alex Hermann, FS#165
---
main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/main.c b/main.c
index e2ad1f3..f80f88c 100644
--- a/main.c
+++ b/main.c
@@ -699,9 +699,9 @@ void handle_sigs()
DBG("INT received, program terminates\n");
else
DBG("SIGTERM received, program terminates\n");
+ LOG(L_NOTICE, "Thank you for flying " NAME "!!!\n");
/* shutdown/kill all the children */
shutdown_children(SIGTERM, 1);
- LOG(L_NOTICE, "Thank you for flying " NAME "\n");
exit(0);
break;