From 9a7b736dd9dc3385ef9f85eec3e17c0dbb1693e2 Mon Sep 17 00:00:00 2001 From: Andrei E Date: Sat, 9 Mar 2024 14:19:01 +0000 Subject: [PATCH] Remove SIGCHLD handler SIG_DFL on SIGCHLD prevents proper functioning of pclose, which the new version of the pasting functionality requires. Closes Cloudef#385 Ref: https://stackoverflow.com/questions/54189212/popen-returns-1-unexpectedly --- client/bemenu-run.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/client/bemenu-run.c b/client/bemenu-run.c index 6b8178b9..0084aa07 100644 --- a/client/bemenu-run.c +++ b/client/bemenu-run.c @@ -1,7 +1,6 @@ #include #include #include -#include #include #include #include @@ -166,14 +165,6 @@ item_cb(const struct client *client, struct bm_item *item) int main(int argc, char **argv) { - struct sigaction action = { - .sa_handler = SIG_DFL, - .sa_flags = SA_NOCLDWAIT - }; - - // do not care about childs - sigaction(SIGCHLD, &action, NULL); - if (!bm_init()) return EXIT_FAILURE;