Ticket #10890: logserver-10890.log

File logserver-10890.log, 919 bytes (added by JYA, 14 years ago)
Line 
1diff --git a/mythtv/libs/libmythbase/mythcommandlineparser.cpp b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
2index 3bbac88..831fc0a 100644
3--- a/mythtv/libs/libmythbase/mythcommandlineparser.cpp
4+++ b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
5@@ -2676,11 +2676,19 @@ int MythCommandLineParser::Daemonize(void)
6 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
7 LOG(VB_GENERAL, LOG_WARNING, "Unable to ignore SIGPIPE");
8
9+#if CONFIG_DARWIN
10+ if (toBool("daemon"))
11+ {
12+ cerr << "Daemonizing is unavaible in OSX" << ENO_STR << endl;
13+ LOG(VB_GENERAL, LOG_WARNING, "Unable to daemonize");
14+ }
15+#else
16 if (toBool("daemon") && (daemon(0, 1) < 0))
17 {
18 cerr << "Failed to daemonize: " << ENO_STR << endl;
19 return GENERIC_EXIT_DAEMONIZING_ERROR;
20 }
21+#endif
22
23 QString username = toString("username");
24 if (!username.isEmpty() && !setUser(username))