]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 8 May 2020 14:34:09 +0000 (09:34 -0500)
commita1d94e13dbd3c999a9ff3cc13531b439a5204ba3
tree1bfa09572e84a9e2575cf5b1d650751fcd666cc1
parentb43b04a1f48f791c90dd52836e037501d706dd87
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