-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-blocking stdout/err with nodejs
Node will sometimes set stdout or stderr into non-blocking mode, but go will not notice this. When go attempts to write, we get an error: `write /dev/stdout: resource temporarily unavailable`. To avoid this issue, we copy the output of the command to the stdout and stderr of the go process. golang/go#58408 (comment)
- Loading branch information
Showing
1 changed file
with
43 additions
and
13 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