8026950: Nits in agent ps_proc.c file breaks compilation of open hotspot
authordsamersoff
Mon, 28 Oct 2013 21:41:48 +0400
changeset 21190 bd5309114ca2
parent 21189 e851a0a007ce
child 21191 7dd3fc99a362
child 21515 ec29f0abf481
child 21516 8fa5308ab970
8026950: Nits in agent ps_proc.c file breaks compilation of open hotspot Summary: Fixed two compilation-breaking nits Reviewed-by: sla, dholmes
hotspot/agent/src/os/bsd/ps_proc.c
--- a/hotspot/agent/src/os/bsd/ps_proc.c	Fri Oct 25 22:06:43 2013 -0700
+++ b/hotspot/agent/src/os/bsd/ps_proc.c	Mon Oct 28 21:41:48 2013 +0400
@@ -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;
   }
@@ -434,7 +434,6 @@
 // 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");