diff options
Diffstat (limited to 'utils/muted.c')
-rw-r--r-- | utils/muted.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/muted.c b/utils/muted.c index 37ae42c5e..c406258e1 100644 --- a/utils/muted.c +++ b/utils/muted.c @@ -680,8 +680,14 @@ int main(int argc, char *argv[]) fclose(astf); exit(1); } - if (needfork) + if (needfork) { +#ifndef HAVE_SBIN_LAUNCHD daemon(0,0); +#else + fprintf(stderr, "Mac OS X detected. Use 'launchd -d muted -f' to launch.\n"); + exit(1); +#endif + } for(;;) { if (wait_event()) { fclose(astf); |