Skip to content
Snippets Groups Projects
Commit d517610b authored by Moe Jette's avatar Moe Jette
Browse files

Add logic to send SIGMIRGRATE and SIGSOUND to top process only, not

entire process group. Used to initiate job checkpoint.
parent ea6dbb18
No related branches found
No related tags found
No related merge requests found
/*****************************************************************************\
* src/slurmd/req.c - slurmd request handling
* $Id$
* src/slurmd/req.c - slurmd request handling
* $Id$
*****************************************************************************
* Copyright (C) 2002 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
......@@ -762,6 +762,19 @@ _rpc_kill_tasks(slurm_msg_t *msg, slurm_addr *cli_addr)
if (slurm_signal_container(step->cont_id,
req->signal) < 0)
rc = errno;
/* SIGMIGRATE and SIGSOUND are used to initiate job checkpoint on AIX.
* These signals are not sent to the entire process group, but just a
* single process, namely the PMD. */
#ifdef SIGMIGRATE
#ifdef SIGSOUND
} else if ((req->signal == SIGMIGRATE) ||
(req->signal == SIGSOUND)) {
if (step->task_list
&& (step->task_list->pid > (pid_t) 0)
&& (kill(step->task_list->pid, req->signal) < 0))
rc = errno;
#endif
#endif
} else {
if (step->task_list
&& (step->task_list->pid > (pid_t) 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment