[Asterisk-code-review] res musiconhold: Add kill escalation delay, kill method to ... (asterisk[14])
George Joseph
asteriskteam at digium.com
Tue Jul 11 13:52:41 CDT 2017
Hello Matthew Fredrickson, Jenkins2,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/5985
to look at the new patch set (#2).
Change subject: res_musiconhold: Add kill_escalation_delay, kill_method to class
......................................................................
res_musiconhold: Add kill_escalation_delay, kill_method to class
By default, when res_musiconhold reloads or unloads, it sends a HUP
signal to custom applications (and all descendants), waits 100ms,
then sends a TERM signal, waits 100ms, then finally sends a KILL
signal. An application which is interacting with an external
device and/or spawns children of its own may not be able to exit
cleanly in the default times, expecially if sent a KILL signal, or
if it's children are getting signals directly from
res_musiconhoild.
* To allow extra time, the 'kill_escalation_delay'
class option can be used to set the number of milliseconds
res_musiconhold waits before escalating kill signals, with the
default being the current 100ms.
* To control to whom the signals are sent, the "kill_method" class
option can be set to "process_group" (the default, existing
behavior), which sends signals to the application and its
descendants directly, or "process" which sends signals only to the
application itself.
Change-Id: Iff70a1a9405685a9021a68416830c0db5158603b
---
M CHANGES
M configs/samples/musiconhold.conf.sample
M res/res_musiconhold.c
3 files changed, 142 insertions(+), 49 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/85/5985/2
--
To view, visit https://gerrit.asterisk.org/5985
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iff70a1a9405685a9021a68416830c0db5158603b
Gerrit-Change-Number: 5985
Gerrit-PatchSet: 2
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Matthew Fredrickson <creslin at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170711/372be6aa/attachment.html>
More information about the asterisk-code-review
mailing list