-
Notifications
You must be signed in to change notification settings - Fork 2.7k
'yarn run' does not forward SIGTERM to process #3424
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
Comments
Send a PR :) |
Does yarn even handle SIGTERM? if so, where? It would have to keep a reference to every child process and call |
@GAumala, would you send a PR? |
I'd love to give it a shot, but I have some questions. So
Does yarn already have a SIGTERM handler? Which choice should I use? |
@frank-weindel can you update the OP as this is an issue with |
@GAumala, sorry for a delay. I don't think yarn has a SIGTERM handler except for onDeath() callback when Yarn is executed in mutex mode https://github.com/yarnpkg/yarn/blob/master/src/cli/index.js#L232. I think returning reference should be a cleaner solution rather than attaching to global process. |
When running an application via 'yarn run' and a SIGTERM is signaled on it, yarn does not forward the SIGTERM to its child process(es). Hence an application's graceful shutdown code cannot run.
The text was updated successfully, but these errors were encountered: