Skip to content

Commit

Permalink
mxqd: Continue to kill cancelled jobs while shutdown is active
Browse files Browse the repository at this point in the history
This fixes issue mariux64#2
  • Loading branch information
mariux committed Jul 27, 2015
1 parent a8513e7 commit bbe8f57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,9 @@ int main(int argc, char *argv[])
if (global_sigint_cnt)
killall(&server, SIGTERM, 0);

killallcancelled(&server, SIGTERM, 0);
killallcancelled(&server, SIGINT, 0);

mx_log_info("jobs_running=%lu global_sigint_cnt=%d global_sigterm_cnt=%d : Exiting. Wating for jobs to finish. Sleeping for a while.",
server.jobs_running, global_sigint_cnt, global_sigterm_cnt);
sleep(1);
Expand Down

0 comments on commit bbe8f57

Please sign in to comment.