-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
child_process.spawn detached not inheriting stdio on OSX starting with Node version 0.12 #4348
Comments
Can you give a more concrete example that does not work? Also, according to the docs, I'm not sure that
|
As described, the child should stay attached to the parent terminal. You
|
The example you included in this issue works for me with latest master on OS X 10.11.1. |
Interesting. I won't have access to a mac for a couple weeks due to the Definitely not a big issue, our code only hit this accidentally (usually
|
I believe this is a duplicate of #3596 . Closing this issue in a favor of that one, please let me know if you feel that this issue is different and should not be closed. |
The following statement on Linux (and on OSX with Node v0.10 and older) works as expected, but fails on OSX on Node v0.12 and up:
On OSX, it now does not inherit the stdio handles, causing nothing to be outputted (and in the case of spawning anything more complicated than
echo
, can be seen to cause the child process to die almost immediately, presumably with EPIPE or something).This was working fine in v0.10.x, does not work for me in v0.12.7, v4.2.3, or v5.3.0.
stdio: inhert
+detached: true
is useful for launching a process from a parent that might be killed/restarted, and letting the child continue (presumably with the parent launched redirecting output to a file for logging, etc).I'm on OSX v10.9.5.
The text was updated successfully, but these errors were encountered: