Skip to content

Commit

Permalink
Optimize the return value of spawn (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson authored May 23, 2024
1 parent ac1eea0 commit 56c7541
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/syscalls/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ pub fn spawn(
1 => Err(SysError::IndexOutOfBound),
2 => Err(SysError::ItemMissing),
3 => Err(SysError::Encoding),
6 => Err(SysError::InvalidFd),
8 => Err(SysError::MaxVmsSpawned),
x => Err(SysError::Unknown(x)),
}
Expand Down

0 comments on commit 56c7541

Please sign in to comment.