Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jyaimac:mythtv jyavenard$ cat tt
- 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/libs/libmythbase/mythcorecontext.cpp b/mythtv/libs/libmythbase/mythcorecontext.cpp
- index f267853..909bd01 100644
- --- a/mythtv/libs/libmythbase/mythcorecontext.cpp
- +++ b/mythtv/libs/libmythbase/mythcorecontext.cpp
- @@ -14,6 +14,7 @@
- #include <cmath>
- #include <cstdarg>
- +#include <iostream>
- #include <queue>
- #include <algorithm>
- @@ -191,6 +192,7 @@ bool MythCoreContext::Init(void)
- return false;
- }
- + cerr << "blah5." << endl;
- if (d->m_appBinaryVersion != MYTH_BINARY_VERSION)
- {
- LOG(VB_GENERAL, LOG_CRIT,
- @@ -206,6 +208,7 @@ bool MythCoreContext::Init(void)
- return false;
- }
- + cerr << "blah6." << endl;
- #ifndef _WIN32
- QString lang_variables("");
- @@ -227,8 +230,10 @@ bool MythCoreContext::Init(void)
- lang_variables.append(", and ");
- lang_variables.append("LANG");
- }
- + cerr << "blah7." << endl;
- LOG(VB_GENERAL, LOG_INFO, QString("Assumed character encoding: %1")
- .arg(lc_value));
- + cerr << "blah8." << endl;
- if (!lang_variables.isEmpty())
- LOG(VB_GENERAL, LOG_WARNING, QString("This application expects to "
- "be running a locale that specifies a UTF-8 codeset, and many "
- @@ -237,6 +242,7 @@ bool MythCoreContext::Init(void)
- "in which this program is executed to include a UTF-8 codeset "
- "(such as 'en_US.UTF-8').").arg(lang_variables));
- #endif
- + cerr << "blah9." << endl;
- return true;
- }
- 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;
- jyaimac:mythtv jyavenard$
Advertisement
Add Comment
Please, Sign In to add comment