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
This commit is contained in:
Andrei E 2024-03-09 14:19:01 +00:00 committed by Jari Vetoniemi
parent fab01c9906
commit 9a7b736dd9

View File

@ -1,7 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <dirent.h>
#include <assert.h>
@ -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;