-
Notifications
You must be signed in to change notification settings - Fork 50
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
shell fails to reap child processes in a timely manner #33
Comments
Good catch! Just tried the same in bash, no such issue. (my first thought was bash do the same thing :) Seems I need to add a signal handler for Thanks for trying cicada. |
You should call In addition, you do need a |
I tried a way to address this issue in #38, But feel it's not that ideal (but cannot find a better way yet): I have to sync some information between the signal hander and the main thread. One issue is if the same PID is used by another new process and it also got reaped by hander. Incorrect status may be fetched by main thread. @godmar would you like to have a look and provide me any suggestions? Thanks a lot! |
If you run
The first command should be reaped after 5 seconds, not after 200.
Similarly, if you run
this job isn't reaped until the user hits Enter again.
The text was updated successfully, but these errors were encountered: