From b61a75524915525dca5ede7098ccb06956750ee9 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 23 Dec 2002 19:01:48 +0000 Subject: [PATCH] Correct setting of totalview flag (was ANDed, needed to be ORed). Add incluode of ptrace header --- src/slurmd/mgr.c | 1 + src/srun/launch.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slurmd/mgr.c b/src/slurmd/mgr.c index 012a36d3103..d5ccce5ee4d 100644 --- a/src/slurmd/mgr.c +++ b/src/slurmd/mgr.c @@ -36,6 +36,7 @@ #include <sys/wait.h> #include <sys/stat.h> #include <sys/param.h> +#include <sys/ptrace.h> #include <unistd.h> #include <pwd.h> #include <grp.h> diff --git a/src/srun/launch.c b/src/srun/launch.c index c0e00f8365a..b382e56e6da 100644 --- a/src/srun/launch.c +++ b/src/srun/launch.c @@ -175,7 +175,7 @@ launch(void *arg) #ifdef HAVE_TOTALVIEW if (opt.totalview) - r->task_flags &= TASK_TOTALVIEW_DEBUG; + r->task_flags |= TASK_TOTALVIEW_DEBUG; #endif } -- GitLab