]> git.ipfire.org Git - thirdparty/asterisk.git/commit
asterisk.c: Non-root users also get the astcanary after core restart. 23/3923/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:34 +0000 (02:05 -0500)
commitb4ed4e7654da53b16e553c3ecd5a0be168d2c655
treefd893890b1069ddeeb58a236f2f55d708918f9eb
parentd388b9b34123cd777d38c6fed7590a96bf4794d8
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