Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/mythtv/libs/libmythbase/mythcommandlineparser.cpp b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
- index 3bbac88..6f4ee4f 100644
- --- a/mythtv/libs/libmythbase/mythcommandlineparser.cpp
- +++ b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
- @@ -2676,7 +2676,7 @@ int MythCommandLineParser::Daemonize(void)
- if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
- LOG(VB_GENERAL, LOG_WARNING, "Unable to ignore SIGPIPE");
- - if (toBool("daemon") && (daemon(0, 1) < 0))
- + if (toBool("daemon") && (daemon(1, 1) < 0))
- {
- cerr << "Failed to daemonize: " << ENO_STR << endl;
- return GENERIC_EXIT_DAEMONIZING_ERROR;
- diff --git a/mythtv/programs/mythlogserver/main.cpp b/mythtv/programs/mythlogserver/main.cpp
- index c017bf3..2ec0f41 100644
- --- a/mythtv/programs/mythlogserver/main.cpp
- +++ b/mythtv/programs/mythlogserver/main.cpp
- @@ -102,6 +102,8 @@ int main(int argc, char *argv[])
- if (!logging)
- return GENERIC_EXIT_OK;
- + cerr << "blah." << endl;
- +
- #ifndef _WIN32
- QList<int> signallist;
- signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT << SIGBUS << SIGFPE
- @@ -110,13 +112,20 @@ int main(int argc, char *argv[])
- handler.AddHandler(SIGHUP, logSigHup);
- #endif
- + cerr << "blah2." << endl;
- +
- gContext = new MythContext(MYTH_BINARY_VERSION);
- +
- + cerr << "blah3." << endl;
- +
- if (!gContext->Init(false))
- {
- cerr << "Failed to init MythContext, exiting." << endl;
- return GENERIC_EXIT_NO_MYTHCONTEXT;
- }
- + cerr << "blah4." << endl;
- +
- qApp->exec();
- return GENERIC_EXIT_OK;
Advertisement
Add Comment
Please, Sign In to add comment