-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Nodemon child process not being killed with update to 1.18.0 #1386
Nodemon child process not being killed with update to 1.18.0 #1386
Comments
This is me running that command on my own Mac 10.13.5 using zsh: 1.18.0 does change how stdin is handled, so I can believe there's a problem here, but I can't replicate at the moment. This is a gist of the package.json and I'm able to ctrl-c the process and the sub-process (in my case) does exit. Are you able to include any more detail on what you're seeing? |
(I'm shutting down for the night, but if you're able to give me more info I've pushed a version that has a tiny tweak that might help - I'm not sure, you can test from |
Related commit: a974892 |
I can confirm this is an issue for me as well, I can kill the process on 1.17.5. The issue started appearing after I upgraded to 1.18.0. I am a Mac user. |
I've published a new debug version - please can both windows and all other OS types test with this version - again, for myself, both 1.18.0 and debug versions work - but I'm using the exact same example provided by @nathanchapman. To installed: |
Also encountered this error today in our dev shop (MacOS). Temporary fix was to:
Will test |
@remy Can confirm nodemon@1.18.1-alpha.2 exits gracefully (without issue error) for me (MacOS) |
I can also confirm nodemon@1.18.1-alpha.2 on GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17) is working as expected. Thanks for the quick fix! |
Fixes #1386 Also sends the correct signal codes on exit - so instead of $?=1 on ctrl-c, you'll see $?=130 as per http://tldp.org/LDP/abs/html/exitcodes.html
Windows works as well |
Fixes #1386 Also sends the correct signal codes on exit - so instead of $?=1 on ctrl-c, you'll see $?=130 as per http://tldp.org/LDP/abs/html/exitcodes.html
Okay, the fix is shipping now. It'll be on npm as 1.18.1 as soon as the tests have finished. |
I'm still getting the error with 1.18.1:
1.18.1-alpha.2 is working correctly. |
@ianrosedev can you explain what you're doing to run that command? i.e. so I can replicate? |
@remy I'm running this this Mocha test script:
|
@ianrosedev did you get your prompt back and did the sub-process end? - so far your screenshots don't answer that question. |
@remy sorry about that. Yes the prompt is coming back and the sub-process is ending. |
Please can you try with the current debug version: I'm going to revert the change I made for handling ctrl-l if this fixes the issue. |
@remy I had the same issue on Mac with 1.18.1, but it works fine with 1.18.2-alpha.1 |
@remy yes 1.18.2-alpha.1 is working correctly for me too. |
|
nodemon -v
:1.18.0
node -v
:v8.11.2
macOS 10.13.5/ZSH
nodemon --exec npx ...
Expected behaviour
In the previous version (
1.17.5
), Nodemon would properly kill the child process with^C
Actual behaviour
After updating to
1.18.0
, Nodemon no longer kills the child process and now throws an error:Steps to reproduce
Update to
1.18.0
and run a child process like:nodemon --exec npx http-server
. Hit control + C. See new error. The http-server will still be running and requires akillall node
to exit.If applicable, please append the
--dump
flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.The text was updated successfully, but these errors were encountered: