-
-
Notifications
You must be signed in to change notification settings - Fork 15
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 suspended when stdout and stderr are redirected and the process is daemonized #3
Comments
I looked into this. It's definitely You could do this workaround: http://stackoverflow.com/a/24056296/64949 But I don't consider that a real fix. I think I've found a solution though, by detecting whether we are in the background or not, and only execute
// @qix In case you have anything to add. |
See also sindresorhus/update-notifier#125 npm itself uses update-notifier which uses an old version of boxen which uses an old version of term-size which has the hang bug. I'm lucky, I can work around it with npm install -g npm@3.10.8, but sure would be nice to not have to. |
So trying to fix this issue I found that in this line of
term-size
stops the execution:Reproduce
With the
vendor/resize
binary, execute a script:And executing like this:
This doesn't happen when you don't run the process in the background (so, without the last
&
):This could be an error in
execa
or in theresize
binary, I have no clue.The text was updated successfully, but these errors were encountered: