dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 189664 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r189664 | dbailey | 2009-04-21 10:52:13 -0500 (Tue, 21 Apr 2009) | 2 lines
  
  Remove daemon call on systems that do not support forking.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@189665 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dbailey 2009-04-21 15:54:16 +00:00
parent 7c52f63824
commit 69331f19c4
1 changed files with 2 additions and 0 deletions

View File

@ -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);