diff options
author | amurillo <none@none> | 2013-11-01 08:26:54 -0700 |
---|---|---|
committer | amurillo <none@none> | 2013-11-01 08:26:54 -0700 |
commit | 275be0d8f1c7556f4fa608e0e039baa6a00e1db3 (patch) | |
tree | 3050a23093402c125d5e6ffcdc7227a72a33e292 /agent/src/os/bsd/ps_proc.c | |
parent | d3e86f60571bc6e9dc0b09b96003d56970d68fb1 (diff) | |
parent | 21c86c80ce5e2b00f63338dadf8a78a5ce625c4d (diff) |
Mergehs25-b57
Diffstat (limited to 'agent/src/os/bsd/ps_proc.c')
-rw-r--r-- | agent/src/os/bsd/ps_proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/agent/src/os/bsd/ps_proc.c b/agent/src/os/bsd/ps_proc.c index cf4a5d71d..53cafe1f4 100644 --- a/agent/src/os/bsd/ps_proc.c +++ b/agent/src/os/bsd/ps_proc.c @@ -131,7 +131,7 @@ static bool process_get_lwp_info(struct ps_prochandle *ph, lwpid_t lwp_id, void static bool ptrace_continue(pid_t pid, int signal) { // pass the signal to the process so we don't swallow it - if (ptrace(PTRACE_CONT, pid, NULL, signal) < 0) { + if (ptrace(PT_CONTINUE, pid, NULL, signal) < 0) { print_debug("ptrace(PTRACE_CONT, ..) failed for %d\n", pid); return false; } @@ -434,7 +434,6 @@ static ps_prochandle_ops process_ops = { // attach to the process. One and only one exposed stuff struct ps_prochandle* Pgrab(pid_t pid) { struct ps_prochandle* ph = NULL; - thread_info* thr = NULL; if ( (ph = (struct ps_prochandle*) calloc(1, sizeof(struct ps_prochandle))) == NULL) { print_debug("can't allocate memory for ps_prochandle\n"); |