mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-27 16:07:15 -07:00
Remove daemon call on systems that do not support forking.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@189664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -684,6 +684,7 @@ int main(int argc, char *argv[])
|
||||
fclose(astf);
|
||||
exit(1);
|
||||
}
|
||||
#if HAVE_WORKING_FORK
|
||||
if (needfork) {
|
||||
#ifndef HAVE_SBIN_LAUNCHD
|
||||
if (daemon(0,0) < 0) {
|
||||
@@ -695,6 +696,7 @@ int main(int argc, char *argv[])
|
||||
exit(1);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
for(;;) {
|
||||
if (wait_event()) {
|
||||
fclose(astf);
|
||||
|
||||
Reference in New Issue
Block a user