calcurse
calcurse copied to clipboard
No SIGCHLD handler, notify-send becomes zombie after being executed as notification.command
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);
}
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?