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

Process may hung when caller's SIGCHLD sets SIG_IGN #98

Closed
wants to merge 1 commit into from

Conversation

JiangKun1991
Copy link

Process execute sudo command ignored SIGCHLD,
if the child exits immediately,there would no SIGCHLD.

Signed-off-by: ​JiangKun jiang.kun2@zte.com.cn

Process execute sudo command ignored SIGCHLD,
if the child exits immediately,there would no SIGCHLD.

Signed-off-by: ​JiangKun <jiang.kun2@zte.com.cn>
millert added a commit that referenced this pull request Apr 23, 2021
If SIGCHLD is ignored there is a race condition between when the
process is executed and when the SIGCHLD handler is installed.
This fixes the bug described by GitHub PR #98
@millert
Copy link
Collaborator

millert commented Apr 23, 2021

Thanks for the report. I fixed this in a different way in 727056e

@millert millert closed this Apr 23, 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