discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=66a3fcb0130e2332ef54c8e67a8377f086a6f372

commit 66a3fcb0130e2332ef54c8e67a8377f086a6f372
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri May 6 13:43:47 2016 -0400

    add SA_NOCLDWAIT to SIGCHLD flags when xwayland module loads
    
    pulseaudio uses waitpid internally and will deadlock if ecore-audio
    performs a deferred connect
---
 src/modules/xwayland/e_mod_main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/modules/xwayland/e_mod_main.c 
b/src/modules/xwayland/e_mod_main.c
index 3e5c895..b43e311 100644
--- a/src/modules/xwayland/e_mod_main.c
+++ b/src/modules/xwayland/e_mod_main.c
@@ -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);
 }
 

-- 


Reply via email to