mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
UserspaceEmulator: Forward errors from fork() correctly
This commit is contained in:
parent
3455876976
commit
5de7bae383
Notes:
sideshowbarker
2024-07-19 04:25:06 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5de7bae3838
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…
Reference in a new issue