forked from Bananymous/banan-os
Kernel: Cleanup sys_wait sleep/signal handling
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user