agent/src/os/bsd/ps_proc.c

changeset 6031
1a04de1aaedb
parent 4599
2394a89e89f4
child 6876
710a3c8b516e
     1.1 --- a/agent/src/os/bsd/ps_proc.c	Fri Oct 25 22:06:43 2013 -0700
     1.2 +++ b/agent/src/os/bsd/ps_proc.c	Mon Oct 28 21:41:48 2013 +0400
     1.3 @@ -131,7 +131,7 @@
     1.4  
     1.5  static bool ptrace_continue(pid_t pid, int signal) {
     1.6    // pass the signal to the process so we don't swallow it
     1.7 -  if (ptrace(PTRACE_CONT, pid, NULL, signal) < 0) {
     1.8 +  if (ptrace(PT_CONTINUE, pid, NULL, signal) < 0) {
     1.9      print_debug("ptrace(PTRACE_CONT, ..) failed for %d\n", pid);
    1.10      return false;
    1.11    }
    1.12 @@ -434,7 +434,6 @@
    1.13  // attach to the process. One and only one exposed stuff
    1.14  struct ps_prochandle* Pgrab(pid_t pid) {
    1.15    struct ps_prochandle* ph = NULL;
    1.16 -  thread_info* thr = NULL;
    1.17  
    1.18    if ( (ph = (struct ps_prochandle*) calloc(1, sizeof(struct ps_prochandle))) == NULL) {
    1.19       print_debug("can't allocate memory for ps_prochandle\n");

mercurial