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

Correct setting of totalview flag (was ANDed, needed to be ORed).

Add incluode of ptrace header
parent 4ae292e8
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/ptrace.h>
#include <unistd.h> #include <unistd.h>
#include <pwd.h> #include <pwd.h>
#include <grp.h> #include <grp.h>
......
...@@ -175,7 +175,7 @@ launch(void *arg) ...@@ -175,7 +175,7 @@ launch(void *arg)
#ifdef HAVE_TOTALVIEW #ifdef HAVE_TOTALVIEW
if (opt.totalview) if (opt.totalview)
r->task_flags &= TASK_TOTALVIEW_DEBUG; r->task_flags |= TASK_TOTALVIEW_DEBUG;
#endif #endif
} }
......
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