Module: kamailio Branch: master Commit: a5b5091ad937bbb5336b86ebb5ca2de7556b8e67 URL: https://github.com/kamailio/kamailio/commit/a5b5091ad937bbb5336b86ebb5ca2de7556b8e67
Author: Camille Oudot <[email protected]> Committer: Camille Oudot <[email protected]> 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*/ _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
