Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Improved handling of SIGTERM #660
Improved handling of SIGTERM #660
Changes from 69 commits
73bdb1f
653b13d
8a44759
2586af7
66711b5
dd06542
68581a6
d0fa14e
71e0f0b
c95676e
71cc43a
09904e0
4d12ffa
855c94a
c18fc71
0ba438c
93a27dc
733cb50
7bf486a
34bc47c
bc8b6fa
ce94fe9
59dad14
342db58
3f7b459
9ae1951
1603d2f
ae1dd47
9cd1623
63006db
128e1fc
98dff9d
b06531d
5ce67c6
709522c
17167dd
65c9c44
1312c18
2f2a00b
d2d3563
f2d9f1e
69f8192
9a7e3a0
3dc0795
fdc519a
27cba8f
75459e3
286b980
0a406d8
521560b
d4102cb
0a0b83b
9ab0be5
5d80ab4
3bcd5f8
bdda7bd
3c1656d
30cf713
cb4b42f
6a753d6
deafe6a
8e41f22
69b10cf
1a5fbbc
506eb71
139052a
56e38b3
c7ad4f1
8d50a85
0406025
d7044f7
6a4d887
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
gracefulExitRequested() returns a bool, but here you set it to an integer. Please choose one (
bool
if possible)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.
This relies on implicit type conversion from int types to bool. sig_atomic_t is specifically meant to be used in signal handlers. This is run-of-the-mill signal handling, see "Compliant Solution (Writing volatile sig_atomic_t)" here: https://wiki.sei.cmu.edu/confluence/display/c/SIG31-C.+Do+not+access+shared+objects+in+signal+handlers.
This file was deleted.
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.
Is it installing multiple signal handlers?
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.
Potentially in the future. I prefer to keep API changes rare.
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.
Please rename to
installEarlyExitSignalHandler()
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 strongly disagree on this one. installCustomSignalHandlers() is like parseOptions() a generic concept: install whatever custom signal handlers may be specified in the options. Either my pull request goes in as-is now, or I'll withdraw it. @emjotde