Skip to content
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

fix: "Channel closed" error in child on graceful shutdown after SIGTERM #321

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

everhardt
Copy link

fixes #320

I could not identify a reason why child.disconnect() is needed at all:

  • If willTerminate === false, the chill will be killed anyway (and Fix: immediate recompilation #256 is also suggesting it is not needed there).
  • If willTerminate === true, the child might need to require new files, for which the IPC is needed, so there we cannot disconnect. When the client exists, the IPC is disconnected anyway.

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

Successfully merging this pull request may close these issues.

"Channel closed" error in child on graceful shutdown after SIGTERM
1 participant