]> git.ipfire.org Git - thirdparty/asterisk.git/commit
asterisk.c: Non-root users also get the astcanary after core restart. 22/3922/2
authorWalter Doekes <walter+github@wjd.nu>
Mon, 19 Sep 2016 19:21:23 +0000 (21:21 +0200)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 20 Sep 2016 07:05:27 +0000 (02:05 -0500)
commit9372d32100b82669d56fcb147b0f8b2fa10ab529
tree4459e554fa98545db15c8e6186208ac99bb61110
parent34461b89ace3742056100bb226a3c0c2d90ca5ff
asterisk.c: Non-root users also get the astcanary after core restart.

Without this change, a 'core restart' would kill the astcanary forever
if you're not running as root. Both with and without this patch, the
scheduling priority was still SCHED_RR after restart.

Additionally, the astcanary is now spawned if you start with high
priority and Asterisk doesn't get a chance to lower it. For example
through: `chrt -r 10 sudo -u asterisk asterisk -c`

Also reap killed astcanary processes on core restart.

ASTERISK-26352 #close

Change-Id: Iacb49f26491a0717084ad46ed96b0bea5f627a55
main/asterisk.c