From b6de5654454621e0d94e8f66b609b43b2ae7758f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 7 Jan 2010 13:36:52 +0100 Subject: [PATCH] Bugfix: Use ev_loop_new instead of ev_default_loop because the latter one blocks SIGCHLD (Thanks Ciprian) SIGCHLD was inherited to child processes started by i3 and not all of them unblocked it (shells generally did, though), leading to zombie processes. --- src/mainx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainx.c b/src/mainx.c index 61e71613..389fc76c 100644 --- a/src/mainx.c +++ b/src/mainx.c @@ -285,7 +285,7 @@ int main(int argc, char *argv[], char *env[]) { } /* Initialize event loop using libev */ - struct ev_loop *loop = ev_default_loop(0); + struct ev_loop *loop = ev_loop_new(0); if (loop == NULL) die("Could not initialize libev. Bad LIBEV_FLAGS?\n"); -- 2.39.5