Skip to content

Commit

Permalink
mxqd: Send TERM to process when over memory instead of KILL to pgrp
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Oct 26, 2015
1 parent 9b2a5f4 commit df2c998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,11 +1646,11 @@ int killall_over_memory(struct mxq_server *server)
if (memory/1024 <= group->group.job_memory)
continue;

mx_log_info("killall_over_memory(): used(%lluMiB) > requested(%lluMiB): Sending signal=KILL to job=%s(%d):%lu:%lu pgrp=%d",
mx_log_info("killall_over_memory(): used(%lluMiB) > requested(%lluMiB): Sending signal=TERM to job=%s(%d):%lu:%lu pid=%d",
memory/1024, group->group.job_memory,
group->group.user_name, group->group.user_uid, group->group.group_id, job->job.job_id, pid);

kill(-pid, SIGKILL);
kill(pid, SIGTERM);
}
}
}
Expand Down

0 comments on commit df2c998

Please sign in to comment.