fix for a signal-related issue on machines running KDE
parent
4b1abec7f6
commit
aa1fdb77f7
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue