diff --git a/src/record_syscall.cc b/src/record_syscall.cc index c164b1caa0b..3c3a06e59b4 100644 --- a/src/record_syscall.cc +++ b/src/record_syscall.cc @@ -7104,7 +7104,7 @@ static void rec_process_syscall_arch(RecordTask* t, if (tracee) { // Finish emulation of ptrace result or stop-signal Registers r = t->regs(); - r.set_syscall_result(syscallno == Arch::waitid ? 0 : tracee->tid); + r.set_syscall_result(syscallno == Arch::waitid ? 0 : tracee->tgid()); t->set_regs(r); if (syscallno == Arch::waitid) { remote_ptr sip = r.arg3();