jyavenard

Untitled

Jul 20th, 2012
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. diff --git a/mythtv/libs/libmythbase/mythcommandlineparser.cpp b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
  2. index 3bbac88..6f4ee4f 100644
  3. --- a/mythtv/libs/libmythbase/mythcommandlineparser.cpp
  4. +++ b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
  5. @@ -2676,7 +2676,7 @@ 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 (toBool("daemon") && (daemon(0, 1) < 0))
  10. + if (toBool("daemon") && (daemon(1, 1) < 0))
  11. {
  12. cerr << "Failed to daemonize: " << ENO_STR << endl;
  13. return GENERIC_EXIT_DAEMONIZING_ERROR;
  14. diff --git a/mythtv/programs/mythlogserver/main.cpp b/mythtv/programs/mythlogserver/main.cpp
  15. index c017bf3..2ec0f41 100644
  16. --- a/mythtv/programs/mythlogserver/main.cpp
  17. +++ b/mythtv/programs/mythlogserver/main.cpp
  18. @@ -102,6 +102,8 @@ int main(int argc, char *argv[])
  19. if (!logging)
  20. return GENERIC_EXIT_OK;
  21.  
  22. + cerr << "blah." << endl;
  23. +
  24. #ifndef _WIN32
  25. QList<int> signallist;
  26. signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT << SIGBUS << SIGFPE
  27. @@ -110,13 +112,20 @@ int main(int argc, char *argv[])
  28. handler.AddHandler(SIGHUP, logSigHup);
  29. #endif
  30.  
  31. + cerr << "blah2." << endl;
  32. +
  33. gContext = new MythContext(MYTH_BINARY_VERSION);
  34. +
  35. + cerr << "blah3." << endl;
  36. +
  37. if (!gContext->Init(false))
  38. {
  39. cerr << "Failed to init MythContext, exiting." << endl;
  40. return GENERIC_EXIT_NO_MYTHCONTEXT;
  41. }
  42.  
  43. + cerr << "blah4." << endl;
  44. +
  45. qApp->exec();
  46.  
  47. return GENERIC_EXIT_OK;
Advertisement
Add Comment
Please, Sign In to add comment