Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

[QUESTION] Why SIGTERM is passed only one time? #52

Open
olegsu opened this issue Jul 19, 2020 · 0 comments
Open

[QUESTION] Why SIGTERM is passed only one time? #52

olegsu opened this issue Jul 19, 2020 · 0 comments

Comments

@olegsu
Copy link

olegsu commented Jul 19, 2020

Hey,
I am trying to handle signals in my application and they may come multiple times.
I found here that the signal is propagated only the first time (the second signal will kill npm process and won't pass it to the child). In some use cases, we want to actually receive the second signal as well.
I also found this post talking to something very similar. In the end, they replaced the npm run start command of with node index.js. Is this what npm suggest as best practice in that case?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant