changeset 4981:1c831ee65955

. PTRACE_CONT is spelt PT_CONTINUE for BSD ptrace.
author Greg Lewis <glewis@eyesbeyond.com>
date Wed, 04 Dec 2013 21:20:37 -0800
parents a112c390f56c
children 3dc750f8aebd
files agent/src/os/bsd/ps_proc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/agent/src/os/bsd/ps_proc.c	Sun Dec 01 13:48:11 2013 -0800
+++ b/agent/src/os/bsd/ps_proc.c	Wed Dec 04 21:20:37 2013 -0800
@@ -131,7 +131,7 @@
 
 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;
   }