Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ashish-yadav11 opened this issue Aug 27, 2021 · 1 comment · May be fixed by #503
Open

Comments

@ashish-yadav11
Copy link

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
Copy link
Author

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?

@stephan49 stephan49 linked a pull request Mar 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant