Kernel: Cleanup sys_wait sleep/signal handling

This commit is contained in:
Bananymous 2025-06-19 19:03:42 +03:00
parent 05836fab4c
commit a347ceba74
1 changed files with 1 additions and 4 deletions

View File

@ -806,13 +806,10 @@ namespace Kernel
return exited_pid; return exited_pid;
} }
if (Thread::current().is_interrupted_by_signal())
return BAN::Error::from_errno(EINTR);
if (options & WNOHANG) if (options & WNOHANG)
return 0; return 0;
m_child_exit_blocker.block_indefinite(&m_process_lock); TRY(Thread::current().block_or_eintr_indefinite(m_child_exit_blocker, &m_process_lock));
} }
} }