aboutsummaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authordsamersoff <none@none>2013-10-28 21:41:48 +0400
committerdsamersoff <none@none>2013-10-28 21:41:48 +0400
commit61f9de8d3a9a81401e693aa6b68d0840cd63af12 (patch)
tree652bd749091df409516828f4c0e40ebba527fb3b /agent
parent7326c0e960b372d0770ff819a6cb3a69232152af (diff)
downloadjdk8u_hotspot-61f9de8d3a9a81401e693aa6b68d0840cd63af12.tar.gz
8026950: Nits in agent ps_proc.c file breaks compilation of open hotspot
Summary: Fixed two compilation-breaking nits Reviewed-by: sla, dholmes
Diffstat (limited to 'agent')
-rw-r--r--agent/src/os/bsd/ps_proc.c3
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");