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

Make TERM exit 1 as pre v2.2 series #2103

Merged
merged 1 commit into from
Apr 12, 2021
Merged

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Apr 12, 2021

Before 2.2 series, the TERM signal used to not be handled by the server, so it would not have been a clean exit. In 2.2, it was changed to process TERM signal as a clean exit but this affects the behavior of some tools that were expecting TERM to be exit 1.

Signed-off-by: Waldemar Quevedo wally@synadia.com

/cc @nats-io/core

Copy link
Contributor

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic
Copy link
Member

@wallyqs In the PR description and summary you are talking about exit code -1, yet in the code you use 1. So which one is right?

Before 2.2 series, the TERM signal used to not be handled
by the server, so it would not have been a clean exit.
In 2.2, it was changed to process TERM signal as a clean exit
but this affects the behavior of some tools that were expecting
TERM to be exit 1.

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
@wallyqs wallyqs changed the title Make TERM exit -1 as pre v2.2 series Make TERM exit 1 as pre v2.2 series Apr 12, 2021
@wallyqs
Copy link
Member Author

wallyqs commented Apr 12, 2021

@kozlovic sorry, I meant exit 1. Updated the PR description...

Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

@wallyqs wallyqs merged commit a7db58c into nats-io:master Apr 12, 2021
@wallyqs wallyqs deleted the sigterm-fix branch April 12, 2021 17:54
@kozlovic kozlovic mentioned this pull request Sep 30, 2022
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.

4 participants