[sr-dev] git:master:a5b5091a: Merge pull request #403 from kamailio/child_stop_fail_status
Camille Oudot
camille.oudot at orange.com
Thu Nov 19 12:26:28 CET 2015
Module: kamailio
Branch: master
Commit: a5b5091ad937bbb5336b86ebb5ca2de7556b8e67
URL: https://github.com/kamailio/kamailio/commit/a5b5091ad937bbb5336b86ebb5ca2de7556b8e67
Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at orange.com>
Date: 2015-11-19T12:26:22+01:00
Merge pull request #403 from kamailio/child_stop_fail_status
core: exit with failure code if a child dies
---
Modified: main.c
---
Diff: https://github.com/kamailio/kamailio/commit/a5b5091ad937bbb5336b86ebb5ca2de7556b8e67.diff
Patch: https://github.com/kamailio/kamailio/commit/a5b5091ad937bbb5336b86ebb5ca2de7556b8e67.patch
---
diff --git a/main.c b/main.c
index c9a6a12..94f64ff 100644
--- a/main.c
+++ b/main.c
@@ -755,7 +755,11 @@ void handle_sigs(void)
/* exit */
shutdown_children(SIGTERM, 1);
LM_DBG("terminating due to SIGCHLD\n");
- exit(0);
+ if (WIFSIGNALED(chld_status)) {
+ exit(1);
+ } else {
+ exit(0);
+ }
break;
case SIGHUP: /* ignoring it*/
More information about the sr-dev
mailing list