Skip to content
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

Correctly handle the shellspawn zombie #1559

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

everything411
Copy link
Contributor

The shellspawn zombie problem is introduced in b926434 where setupSigchild is commented out to properly get the exit status of the spawned macOS process. Without setupSigchild the child shellspawn becomes a zombie process. I write a simple workaround in 36fd1ee but it is too ugly, hacky and incomplete -- there is always one zombie shellspawn left.

This PR properly fixes this problem by setupSigchild in the daemon shellspawn and restore the original sigaction of SIGCHLD for the child shellspawn. With this PR there will no longer be any zombie process.

@CuriousTommy CuriousTommy merged commit a458d15 into darlinghq:master Jan 10, 2025
2 checks passed
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 this pull request may close these issues.

2 participants