]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app.c: make sure that no non-async-signal-safe syscalls are used after
authorPirmin Walthert <infos@nappsoft.ch>
Tue, 14 Apr 2020 16:02:19 +0000 (18:02 +0200)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 6 May 2020 11:40:12 +0000 (06:40 -0500)
commit146e7c54f18d7303ba43b12f7fd6ebecf34263fe
treedfaddb3c681a7bcc3ee86007b5ffbd31ea9e6e44
parent10292dc663222dd32fe45e89c05b6872a0fe56de
app.c: make sure that no non-async-signal-safe syscalls are used after
fork before exec

Posix does only allow async-signal-safe syscalls after fork before exec.
As asterisk ignores this, functions like TrySystem or System sometimes
end up in a deadlocked child process. The patch prevents the use of
non-async-signal-safe syscalls.

ASTERISK-28776

Change-Id: Idc76365c0592ee3f3b3bd72a4f48f7a098978e8e
main/app.c
main/asterisk.c
main/strcompat.c