-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some hack for non blocking waitpid Linux
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6e7d379
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need this hack for vscode extension, I don't know why
waitpid(WNOHANG)
can miss stop event on my VM 😢 . Maybe other thread is waiting for all child?Another solution is to retrieving process state by reading
/proc/<pid>/stat
but I don't think it's much better hack.