fix for a signal-related issue on machines running KDE

metadata
Wenzel Jakob 2014-03-05 16:14:34 +01:00
parent 4b1abec7f6
commit aa1fdb77f7
1 changed files with 2 additions and 7 deletions

View File

@ -213,13 +213,8 @@ int main(int argc, char *argv[]) {
#if !defined(__WINDOWS__)
/* Avoid zombies processes when running the server */
struct sigaction sa;
sa.sa_handler = collect_zombies;
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_RESTART;
if (sigaction(SIGCHLD, &sa, NULL) == -1)
SLog(EWarn, "Error in sigaction(): %s!", strerror(errno));
if (signal(SIGCHLD, SIG_IGN) == SIG_ERR)
SLog(EWarn, "Error in signal(): %s!", strerror(errno));
#endif
qRegisterMetaType<ELogLevel>("ELogLevel");