Repository navigation
daemon: Uninstall SIGTERM handler just before rebooting - #491
openshift-merge-robot merged 1 commit into
Conversation
This way we're not delaying shutdown. Closes: openshift#486
ca9dff0 to
3e5b642
Compare
| // Now that everything is done, avoid delaying shutdown. | ||
| if dn.installedSigterm { | ||
| signal.Reset(syscall.SIGTERM) | ||
| dn.installedSigterm = false |
There was a problem hiding this comment.
this isn't really needed right? we get here sequentially through handleNodeUpdated or the very first sync so we don't care about this variable anymore just before rebooting
There was a problem hiding this comment.
Correct, but I'm trying to keep in mind future support for live updates (where we'd install/deinstall the term handler without rebooting).
|
just one comment, lgtm otherwise /approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, runcom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Flake? /retest |
…ore-reboot daemon: Uninstall SIGTERM handler just before rebooting
This way we're not delaying shutdown.
Closes: #486