Permalink
Browse files

Set SIGHUP to ignore on all but mythlogserver

  • Loading branch information...
Beirdo committed May 14, 2012
1 parent 4c2fae0 commit 29d3f129921eb837101cba3004ecf37253972131
@@ -99,6 +99,7 @@ int main(int argc, char **argv)
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -145,6 +145,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -1131,6 +1131,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -348,6 +348,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -1501,6 +1501,7 @@ int main(int argc, char **argv)
SignalHandler handler(signallist);
handler.AddHandler(SIGUSR1, handleSIGUSR1);
handler.AddHandler(SIGUSR2, handleSIGUSR2);
+ signal(SIGHUP, SIG_IGN);
#endif
int retval;
@@ -112,6 +112,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -101,6 +101,7 @@ int main(int argc, char **argv)
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
// Get the MythTV context and db hooks
@@ -110,6 +110,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -92,6 +92,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -206,6 +206,7 @@ int main(int argc, char **argv)
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
@@ -782,6 +782,7 @@ int main(int argc, char **argv)
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -377,6 +377,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
// Load the context
@@ -278,6 +278,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
if (cmdline.toBool("display"))
@@ -80,6 +80,7 @@ int main(int argc, char *argv[])
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);
@@ -78,6 +78,7 @@ int main(int argc, char **argv)
QList<int> signallist;
signallist << SIGINT << SIGTERM << SIGSEGV << SIGABRT;
SignalHandler handler(signallist);
+ signal(SIGHUP, SIG_IGN);
#endif
gContext = new MythContext(MYTH_BINARY_VERSION);

0 comments on commit 29d3f12

Please sign in to comment.