calcurse icon indicating copy to clipboard operation
calcurse copied to clipboard

No SIGCHLD handler, notify-send becomes zombie after being executed as notification.command

Open ashish-yadav11 opened this issue 4 years ago • 1 comments

I searched the source code and I didn't see SIGCHLD being handled anywhere. This causes forked processes turning into zombies. Consider adding a SIGCHLD handler. It could be something like the following:

void
sigchld(int unused)
{
	while (waitpid(-1, NULL, WNOHANG) > 0);
}

ashish-yadav11 avatar Aug 27 '21 18:08 ashish-yadav11

I saw that the situation is not as simple as I thought. I feel sorry for my ignorance. What about using the double forking technique to avoid zombies. Couldn't it be used to solve this bug?

ashish-yadav11 avatar Oct 28 '21 11:10 ashish-yadav11