-
Notifications
You must be signed in to change notification settings - Fork 2.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
SIGINT closes the yarn process, but actual nodejs process is still running #8895
Comments
shouldn't the handler for SIGINT contain the |
SIGINT (or SIGTERM) does not mean it needs to immediately exit unlike other events like |
I believe I have run into this issue as well. I have a Typescript server that when I run it directly with This is the exact same script that I've put in my |
Am also encountering this same aggravating issue; I'm hoping to find command line flag that could fix. Hope this is fixed soon |
Also encountering this issue. |
Here is a PR to fix this issue: #9114 |
I have run into a weird issue where i want to listen on
SIGINT
and have confirmation that it should be closed (by pressing it again), but when run through yarn, it exits the yarn process but leaves the nodejs process behind.yarn package.json script:
test code:
Behavior in yarn: once pressing CTRL+C, then it logs
sigint
once, and drops me to the shell, but the nodejs process is still running and outputting things as seen by subsequentinterval
Behavior in plain node: always when pressing CTRL+C it will trigger
sigint
and does not drop me to the shellSystem:
Node: 18.10.0
Yarn: 1.22.19
Linux 6.0.2 Manjaro
The text was updated successfully, but these errors were encountered: