mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:07:44 +00:00
Kernel+LibC+UserspaceEmulator: Bring back sys$dup2()
This is racy in userspace and non-racy in kernelspace so let's keep it in kernelspace. The behavior change where CLOEXEC is preserved when dup2() is called with (old_fd == new_fd) was good though, let's keep that.
This commit is contained in:
parent
bf247fb45f
commit
65f2270232
7 changed files with 59 additions and 14 deletions
|
@ -100,6 +100,7 @@ set(KERNEL_SOURCES
|
|||
Syscalls/clock.cpp
|
||||
Syscalls/debug.cpp
|
||||
Syscalls/disown.cpp
|
||||
Syscalls/dup2.cpp
|
||||
Syscalls/execve.cpp
|
||||
Syscalls/exit.cpp
|
||||
Syscalls/fcntl.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue