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

Fix simple_exec's waitpid error #61

Merged
merged 1 commit into from
Jan 8, 2021
Merged

Fix simple_exec's waitpid error #61

merged 1 commit into from
Jan 8, 2021

Conversation

jmdejong
Copy link
Contributor

@jmdejong jmdejong commented Jan 6, 2019

When SIGCHLD is ignored (the default) then waitpid will always return error (-1) on linux.
This caused the assertion to fail even when everything is working correctly.
This change adds an empty SIGCHLD handler so waitpid will give a useful result.
At the end the previous handler is restored.

When SIGCHLD is ignored (the default) then waitpid will always return error (-1) on linux.
This caused the assertion to fail even when everything is working correctly.
This change adds an empty SIGCHLD handler so waitpid will give a useful result.
At the end the previous handler is restored.
@jmdejong
Copy link
Contributor Author

jmdejong commented Jan 6, 2019

I only just found the submitting_pull_requests doc. I have tested this on archlinux 64-bit with gcc.

@mlabbe mlabbe merged commit 23b563a into mlabbe:devel Jan 8, 2021
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