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__)
|
#if !defined(__WINDOWS__)
|
||||||
/* Avoid zombies processes when running the server */
|
/* Avoid zombies processes when running the server */
|
||||||
struct sigaction sa;
|
if (signal(SIGCHLD, SIG_IGN) == SIG_ERR)
|
||||||
sa.sa_handler = collect_zombies;
|
SLog(EWarn, "Error in signal(): %s!", strerror(errno));
|
||||||
sigemptyset(&sa.sa_mask);
|
|
||||||
sa.sa_flags = SA_RESTART;
|
|
||||||
|
|
||||||
if (sigaction(SIGCHLD, &sa, NULL) == -1)
|
|
||||||
SLog(EWarn, "Error in sigaction(): %s!", strerror(errno));
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
qRegisterMetaType<ELogLevel>("ELogLevel");
|
qRegisterMetaType<ELogLevel>("ELogLevel");
|
||||||
|
|
Loading…
Reference in New Issue