From 504128aed32a24c002a3be99aefa41d9c10c85bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Mon, 28 Mar 2022 18:24:56 -0600 Subject: [PATCH] remove sigchld function --- dwl.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/dwl.c b/dwl.c index 529dbf8..d5c9628 100644 --- a/dwl.c +++ b/dwl.c @@ -273,7 +273,6 @@ static void setlayout(const Arg *arg); static void setmfact(const Arg *arg); static void setmon(Client *c, Monitor *m, unsigned int newtags); static void setup(void); -static void sigchld(int unused); static void spawn(const Arg *arg); static void startdrag(struct wl_listener *listener, void *data); static void tag(const Arg *arg); @@ -1915,7 +1914,6 @@ setup(void) dpy = wl_display_create(); /* Set up signal handlers */ - sigchld(0); signal(SIGINT, quitsignal); signal(SIGTERM, quitsignal); @@ -2079,20 +2077,6 @@ setup(void) #endif } -void -sigchld(int unused) -{ - /* We should be able to remove this function in favor of a simple - * signal(SIGCHLD, SIG_IGN); - * but the Xwayland implementation in wlroots currently prevents us from - * setting our own disposition for SIGCHLD. - */ - if (signal(SIGCHLD, sigchld) == SIG_ERR) - EBARF("can't install SIGCHLD handler"); - while (0 < waitpid(-1, NULL, WNOHANG)) - ; -} - void spawn(const Arg *arg) {