diff options
Diffstat (limited to 'experimental/slurm/musl-w_exitcode.patch')
-rw-r--r-- | experimental/slurm/musl-w_exitcode.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/experimental/slurm/musl-w_exitcode.patch b/experimental/slurm/musl-w_exitcode.patch new file mode 100644 index 000000000..aed0b08c2 --- /dev/null +++ b/experimental/slurm/musl-w_exitcode.patch @@ -0,0 +1,15 @@ +diff -ur a/src/slurmd/slurmstepd/mgr.c b/src/slurmd/slurmstepd/mgr.c +--- a/src/slurmd/slurmstepd/mgr.c 2024-12-26 20:13:31.150372710 +0000 ++++ b/src/slurmd/slurmstepd/mgr.c 2024-12-26 20:14:46.092417904 +0000 +@@ -1340,6 +1340,11 @@ + return SLURM_ERROR; + } + ++ ++#ifndef W_EXITCODE ++#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) ++#endif ++ + static int _spawn_job_container(stepd_step_rec_t *step) + { + jobacctinfo_t *jobacct = NULL; |