asterisk.c: When astcanary dies on linux, reset priority on all threads.
authorWalter Doekes <walter+github@wjd.nu>
Mon, 19 Sep 2016 14:40:40 +0000 (16:40 +0200)
committerWalter Doekes <walter+asterisk@wjd.nu>
Mon, 19 Sep 2016 14:40:40 +0000 (16:40 +0200)
commitbffaf4669007b6685824b5145aa62b8f0e2ca3d7
treef241606de4d2fc7cbaaa6304166a500bed6a34e4
parent95cf4f8d3128d3c972126efd5b7e4e7b55486fa2
asterisk.c: When astcanary dies on linux, reset priority on all threads.

Previously only the canary checking thread itself had its priority set
to SCHED_OTHER. Now all threads are traversed and adjusted.

ASTERISK-19867 #close
Reported by: Xavier Hienne

Change-Id: Ie0dd02a3ec42f66a78303e9c1aac28f7ed9aae39
main/asterisk.c