diff options
Diffstat (limited to 'src/murmur/UnixMurmur.cpp')
-rw-r--r-- | src/murmur/UnixMurmur.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/murmur/UnixMurmur.cpp b/src/murmur/UnixMurmur.cpp index 5772ce72f..6f2294d9f 100644 --- a/src/murmur/UnixMurmur.cpp +++ b/src/murmur/UnixMurmur.cpp @@ -178,7 +178,12 @@ void UnixMurmur::handleSigHup() { ::read(iHupFd[1], &tmp, sizeof(tmp)); if (! qfLog || ! qfLog->isOpen()) { - qWarning("Caught SIGHUP, but logfile not in use"); + if (qfLog) { + qWarning("Caught SIGHUP, but logfile not in use -- interpreting as hint to quit"); + QCoreApplication::instance()->quit(); + } else { + qWarning("Caught SIGHUP, but logfile not in use"); + } } else { qWarning("Caught SIGHUP, will reopen %s", qPrintable(Meta::mp.qsLogfile)); qfLog->close(); |