[sr-dev] [kamailio] core: exit with failure code if a child dies (#403)

Camille Oudot notifications at github.com
Thu Nov 19 12:10:43 CET 2015


I made this patch to ensure kamailio exits with an unclean status if it stops due to a child exits. This allows systemd's unit `Restart=on-failure` parameter to actually automatically restart kamailio, in a segfault or any other signal-throwing situation.

The side effect is that it would trigger a kamailio restart if one of the children is stopped with a TERM signal, but I considered here that the only clean way to stop kamailio is to send a signal to the main attendant process, and not to a child.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/403

-- Commit Summary --

  * core: exit with failure code if a child dies

-- File Changes --

    M main.c (6)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/403.patch
https://github.com/kamailio/kamailio/pull/403.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/403
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151119/aa04c352/attachment.html>


More information about the sr-dev mailing list