Mon, 28 Oct 2013 21:41:48 +0400
8026950: Nits in agent ps_proc.c file breaks compilation of open hotspot
Summary: Fixed two compilation-breaking nits
Reviewed-by: sla, dholmes
agent/src/os/bsd/ps_proc.c | file | annotate | diff | comparison | revisions |
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");