From 7f701dd80690c972b93b159e59e570710426ace9 Mon Sep 17 00:00:00 2001 From: Nikita Smith Date: Wed, 26 Nov 2025 20:31:34 -0800 Subject: [PATCH] minor fix --- src/demon/linux/demon_core_linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/demon/linux/demon_core_linux.c b/src/demon/linux/demon_core_linux.c index 6ce420ff..e48631f3 100644 --- a/src/demon/linux/demon_core_linux.c +++ b/src/demon/linux/demon_core_linux.c @@ -2564,7 +2564,9 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls) pid_t new_pid; if(OS_LNX_RETRY_ON_EINTR(ptrace(PTRACE_GETEVENTMSG, wait_id, 0, &new_pid)) >= 0) { - dmn_lnx_handle_create_thread(arena, &events, dmn_lnx_thread_from_pid(wait_id), new_pid); + DMN_LNX_Entity *thread = dmn_lnx_thread_from_pid(wait_id); + DMN_LNX_Entity *process = thread->parent; + dmn_lnx_handle_create_thread(arena, &events, process, new_pid); } else { Assert(0 && "failed to get new tid"); } }break;