mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
UserspaceEmulator: Forward errors from fork() correctly
This commit is contained in:
parent
3455876976
commit
5de7bae383
1 changed files with 4 additions and 1 deletions
|
@ -888,7 +888,10 @@ int Emulator::virt$ioctl(int fd, unsigned request, FlatPtr arg)
|
|||
|
||||
int Emulator::virt$fork()
|
||||
{
|
||||
return fork();
|
||||
int rc = fork();
|
||||
if (rc < 0)
|
||||
return -errno;
|
||||
return rc;
|
||||
}
|
||||
|
||||
int Emulator::virt$execve(FlatPtr params_addr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue