Skip to content
Snippets Groups Projects
Commit d0b71473 authored by Moe Jette's avatar Moe Jette
Browse files
parent 6a369502
No related branches found
No related tags found
No related merge requests found
......@@ -268,6 +268,11 @@ documents those changes that are of interest to users and admins.
the code)
-- Added support for OSX build.
* Changes in SLURM 1.1.35
=========================
- In sched/wiki - Add support for CMD=SIGNALJOB to accept option
of VALUE=SIGXXX in addition to VALUE=# and VALUE=XXX options
* Changes in SLURM 1.1.34
=========================
- Insure that slurm_signal_job_step() is defined in srun for mvapich
......
......@@ -40,6 +40,12 @@
#include "src/slurmctld/locks.h"
#include "src/slurmctld/slurmctld.h"
/* translate a signal value to the numeric value, sig_ptr value
* can have three different forms:
* 1. A number
* 2. SIGUSR1 (or other suffix)
* 3. USR1
*/
static uint16_t _xlate_signal(char *sig_ptr)
{
uint16_t sig_val;
......@@ -52,6 +58,9 @@ static uint16_t _xlate_signal(char *sig_ptr)
return sig_val;
}
if (strncasecmp(sig_ptr, "SIG", 3) == 0)
sig_ptr += 3;
if (strncasecmp(sig_ptr, "HUP", 3) == 0)
return SIGHUP;
if (strncasecmp(sig_ptr, "INT", 3) == 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