-
Notifications
You must be signed in to change notification settings - Fork 798
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
[19587] Include variety of terminate proccess signals handler in discovery server #4278
Conversation
Signed-off-by: JesusPoderoso <[email protected]>
Signed-off-by: JesusPoderoso <[email protected]>
e95b28c
to
0a4310a
Compare
@richiprosima please test this |
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.
Interesting signal additions. LGTM with Green CI.
The list is Ok to me. SIGKILL
and SIGSTOP
cannot be handled.
Checked that it solves the issue of an unhandled signal
Friendly pinging @rsanchez15 as it could be interesting to handle these signals in other executables or products too. |
@JesusPoderoso NIT |
Signed-off-by: JesusPoderoso <[email protected]>
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.
LGTM with Green CI. Checking that the CI is compiling its important since some signals may not be available in all OSs.
@richiprosima please test this |
Signed-off-by: JesusPoderoso <[email protected]>
@richiprosima please test this |
@richiprosima please test windows |
@JesusPoderoso please include the backports in the description |
Signed-off-by: JesusPoderoso <[email protected]>
It seems that |
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x |
✅ Backports have been created
|
@richiprosima please test this |
@richiprosima please test mac |
@richiprosima please test mac |
@richiprosima please test mac |
@richiprosima please test mac 🥲 |
@richiprosima please test mac 😢 |
…rver (#4278) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170)
…rver (#4278) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170)
…rver (#4278) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170)
…rver (#4278) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170)
…rver (#4278) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170)
…ver (#4278) (#4332) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170) Co-authored-by: Jesús Poderoso <[email protected]>
…rver (#4278) (#4333) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170) Co-authored-by: Jesús Poderoso <[email protected]>
…rver (#4278) (#4331) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170) Co-authored-by: Jesús Poderoso <[email protected]>
…rver (#4278) (#4334) * Refs #19587: Include SIGHUP handler Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Handle more signals Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Move proper signals to 'linux only' case Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Apply Miguel suggestion Signed-off-by: JesusPoderoso <[email protected]> * Refs #19587: Fix Windows build Signed-off-by: JesusPoderoso <[email protected]> --------- Signed-off-by: JesusPoderoso <[email protected]> (cherry picked from commit 6eb1170) Co-authored-by: Jesús Poderoso <[email protected]>
Description
While closing the terminal by clicking the X button, it seems that the signal emitted was SIGHUP.
For that reason, by handling that signal the application properly closes in those scenarios.
It may be interesting to handle this signal also in several eProsima products. What do you think about the following list, @Mario-DL?
Fast DDS CLI, Fast DDS pipe, router, monitor, record, replay, spy.
EDIT:
After research , I've included the following signals to handle as terminate:
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist