From: Doug Bailey Date: Tue, 21 Apr 2009 15:52:13 +0000 (+0000) Subject: Remove daemon call on systems that do not support forking. X-Git-Tag: 1.4.25-rc1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62ad2e08491b182e7842daec0f059af0d8f1a11a;p=thirdparty%2Fasterisk.git 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 --- diff --git a/utils/muted.c b/utils/muted.c index d05f714c7b..5aa7a79d78 100644 --- a/utils/muted.c +++ b/utils/muted.c @@ -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);