Skip to content

fix signal handling in localstack-supervisor#8007

Merged
thrau merged 2 commits intomasterfrom
fix-supervisor-sigint
Mar 29, 2023
Merged

fix signal handling in localstack-supervisor#8007
thrau merged 2 commits intomasterfrom
fix-supervisor-sigint

Conversation

@thrau
Copy link
Member

@thrau thrau commented Mar 29, 2023

@dfangl noticed that SIGINT is not terminating localstack correctly in docker. this PR makes sure that SIGINT to the supervisor is translated into a SIGTERM to localstack. we tried to forward SIGINT but couldn't quite figure it out. left a todo in there for future daniel and thomas :P

We also now use SIGUSR1 instead of SIGHUP to restart LS, to avoid restarting when the shell is closed (it will now just be ignored. We could start terminating, we can discuss if this is expected).

/cc @alexrashed

@thrau thrau requested a review from dfangl March 29, 2023 16:18
@dfangl dfangl force-pushed the fix-supervisor-sigint branch from ed8d9dc to df56977 Compare March 29, 2023 16:33
@thrau thrau changed the title fix sigint handling in localstack-supervisor fix signal handling in localstack-supervisor Mar 29, 2023
@dfangl dfangl requested review from alexrashed and removed request for dfangl March 29, 2023 16:35
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, great catch! Looks good to me! 🚀

@thrau thrau merged commit c7265eb into master Mar 29, 2023
@thrau thrau deleted the fix-supervisor-sigint branch March 29, 2023 18:10
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.

3 participants