-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite getOutputFrom() in a race-free way (supposedly ;)
- Use a self-pipe to handle signal race on select(). pselect() would work too but this is more portable and avoids other signal hassles. - Use non-blocking IO for communicating with the child to avoid spin-happy timeouts, just check all fd's properly before trying to use them - Avoid leaking memory from readBuff on errors
- Loading branch information
Showing
1 changed file
with
108 additions
and
72 deletions.
There are no files selected for viewing
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