mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
always use fork() when available
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -698,10 +698,10 @@ int ast_safe_system(const char *s)
|
|||||||
#if defined(HAVE_WORKING_FORK) || defined(HAVE_WORKING_VFORK)
|
#if defined(HAVE_WORKING_FORK) || defined(HAVE_WORKING_VFORK)
|
||||||
ast_replace_sigchld();
|
ast_replace_sigchld();
|
||||||
|
|
||||||
#ifdef HAVE_WORKING_VFORK
|
#ifdef HAVE_WORKING_FORK
|
||||||
pid = vfork();
|
|
||||||
#else
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
|
#else
|
||||||
|
pid = vfork();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user