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
allow app to also handle sighup and call super #1527
Conversation
our app wants to reopen rails logs on sighup to do that it needs to trap sighup too but calling pumas trap after does not work since it crashes the server if redirect_io was not used with this change there is 1 less trap used and our app can only call pumas trap if it was set
Doesn't this change mean SIGHUP will no longer call |
it will kill the process (default behavior of SIGHUP) ... not sure if that's bad ... would certainly stop the server :D
|
@runner.redirect_io | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grosser What I meant was you eliminated this branch of code, and I don't understand why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was basically thinking "if you send SIGHUP to a server that does not have any reload mechanic then wtf are you doing" ... but maybe it's valid usecase :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was important to #1377?
that PR is about SIGINT not SIGHUP
stop for SIGHUP was added in
eb6468d
to fix #911 which is about SIGTERM ...
idk kinda confusing :D
…On Tue, Mar 27, 2018 at 4:28 PM, Nate Berkopec ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In lib/puma/launcher.rb
<#1527 (comment)>:
> @runner.redirect_io
- else
I think it was important to #1377 <#1377>
?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1527 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAsZ5uFTg2cTdnNaQRUs3g9VwRbnUfFks5tissMgaJpZM4SjsLw>
.
|
SIGWHYDONTWECALLTHEWHOLETHINGOFF |
#911 has reproduction steps, so if they still work then it's ok ? |
I'm going to reject this PR because it changes the meaning of SIGHUP for existing users. |
our app wants to reopen rails logs on sighup
to do that it needs to trap sighup too
but calling pumas trap after does not work since it crashes the server if redirect_io was not used
with this change there is 1 less trap used and our app can only call pumas trap if it was set
see zendesk/samson#2637
/cc @ragurney @jonmoter