Specifically set sigchld handler to SIG_IGN

See https://pubs.opengroup.org/onlinepubs/9699919799/functions/_Exit.html#tag_16_01_03_01
This commit is contained in:
Ashish Kumar Yadav 2021-08-04 01:58:40 +05:30
parent be75f21fd2
commit c1ff32f912

View file

@ -108,7 +108,7 @@ setupsignals()
/* to prevent forked children from becoming zombies */ /* to prevent forked children from becoming zombies */
sa.sa_flags = SA_NOCLDSTOP | SA_NOCLDWAIT | SA_RESTART; sa.sa_flags = SA_NOCLDSTOP | SA_NOCLDWAIT | SA_RESTART;
// sigemptyset(&sa.sa_mask); // sigemptyset(&sa.sa_mask);
sa.sa_handler = SIG_DFL; sa.sa_handler = SIG_IGN;
sigaction(SIGCHLD, &sa, NULL); sigaction(SIGCHLD, &sa, NULL);
/* to handle signals generated by dwm on click events */ /* to handle signals generated by dwm on click events */