add SA_NOCLDWAIT to SIGCHLD flags when xwayland module loads

pulseaudio uses waitpid internally and will deadlock if ecore-audio
performs a deferred connect
This commit is contained in:
Mike Blumenkrantz 2016-05-06 13:43:47 -04:00
parent 3178064d30
commit 66a3fcb013
1 changed files with 5 additions and 0 deletions

View File

@ -448,6 +448,11 @@ E_API E_Module_Api e_modapi = { E_MODULE_API_VERSION, "XWayland" };
E_API void *
e_modapi_init(E_Module *m)
{
struct sigaction sa;
sigaction(SIGCHLD, NULL, &sa);
sa.sa_flags |= SA_NOCLDWAIT;
sigaction(SIGCHLD, &sa, NULL);
return xwl_init(m);
}