-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mxqd: Switch to killstate state machine
Let the killall_XXX functions use the killstate state machine. `killall` needs to set up its own ppidcache. This is not relevant performace-wise, as it is used only once on ungraceful server shutdown. The functions `killall_over_time`, `killall_over_memory` and `killall_cancelled` on the other hand use ppidcache object from monitor_jobs. Remove all logic to produce sequences of signals from these functions, because this is done by the state machine. The change will also make `killall_cancelled` send a SIGKILL after a SIGTERM if needed. Remove logging from the functions, which is also done by the state machine. Produce KILLEVENT_CHECK events for all jobs in monitor_jobs() to keep the state machine going as time passes.
- Loading branch information
Showing
1 changed file
with
18 additions
and
66 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