-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimize the amount of work done in the signal handler by maintaining a set of received signals and deferring the actual work to the main loop. Treat SIGRTMIN+4 as a power-off signal for compatibility with systemd-machined. Adjust handle_shutdown to skip sending SIGTERM / SIGKILL if there are no processes remaining. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
- Loading branch information
Showing
1 changed file
with
149 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters