mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +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)
|
||||
ast_replace_sigchld();
|
||||
|
||||
#ifdef HAVE_WORKING_VFORK
|
||||
pid = vfork();
|
||||
#else
|
||||
#ifdef HAVE_WORKING_FORK
|
||||
pid = fork();
|
||||
#else
|
||||
pid = vfork();
|
||||
#endif
|
||||
|
||||
if (pid == 0) {
|
||||
|
Reference in New Issue
Block a user