-
Notifications
You must be signed in to change notification settings - Fork 946
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
Forever erroneously pops up console window when executing child process calls #767
Comments
I am also facing this kind of issue. below code works with node test.js but when i try run with forever start test.js it wont execute exec. any alternative way?????
|
We were able to work around this by creating a separate small EXE (on Windows), which does the exec of the child program, setting the correct flags to avoid the process window. I'm not sure that the above comment is the same issue, as our child process was actually running. |
Thanks @jpek42 , i figure out the issue actually my cmd command required terminal session for stdout. thats why its not getting executed now i have changed the way of execution of command which ignore stdout and detach child process from parent and its working fine :) Thanks again |
@jonrhall: passing |
This may be better put into another issue, as i don't want to full necro this thread. But the issue still remains for uses cases such as have a webpack watch daemon. webpack's subprocess (as well as im sure, many other packages that utilise child process) dont implement this feature, and as a developer theres no way for me to disable it without manually changing webpack code. This definitely edges on |
Working with Forever, trying to stand up a fairly simple node server which makes remote calls to a C# client. If you run the script/server directly with Node, no popup console windows will appear, but when run with Forever, every time the server wants to execute a remote command, a console window appears and then disappears after the remote command is finished.
Reproducible on:
-Windows 7 Ultimate
-Node v0.12+ or v4.0+
-npm v3
-Forever 0.15.1
Trivial code example that replicates the error:
Is there some kind of bug with Forever itself, or is this some configuration option that I'm missing?
The text was updated successfully, but these errors were encountered: