mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-01-31 01:21:46 -05:00
process: sys_wait4: return ECHILD with no children
If the calling process has no children and no pending exit events to handle, return ECHILD instead of waiting forever.
This commit is contained in:
committed by
Ashwin Naren
parent
a003ab8f71
commit
64bc004cdb
@@ -53,6 +53,7 @@ pub fn kern_err_to_syscall(err: KernelError) -> isize {
|
||||
KernelError::NotSupported => ENOSYS,
|
||||
KernelError::NoMemory => ENOMEM,
|
||||
KernelError::TimedOut => ETIMEDOUT,
|
||||
KernelError::NoChildProcess => ECHILD,
|
||||
e => todo!("{e}"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user