Skip to content

Commit 7f701dd

Browse files
minor fix
1 parent f9561cb commit 7f701dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/demon/linux/demon_core_linux.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,9 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls)
25642564
pid_t new_pid;
25652565
if(OS_LNX_RETRY_ON_EINTR(ptrace(PTRACE_GETEVENTMSG, wait_id, 0, &new_pid)) >= 0)
25662566
{
2567-
dmn_lnx_handle_create_thread(arena, &events, dmn_lnx_thread_from_pid(wait_id), new_pid);
2567+
DMN_LNX_Entity *thread = dmn_lnx_thread_from_pid(wait_id);
2568+
DMN_LNX_Entity *process = thread->parent;
2569+
dmn_lnx_handle_create_thread(arena, &events, process, new_pid);
25682570
}
25692571
else { Assert(0 && "failed to get new tid"); }
25702572
}break;

0 commit comments

Comments
 (0)