diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-15 10:54:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-15 11:11:34 +0200 |
commit | 65f2270232ad4b02af0ed5e02ee63e8dc5ef4c0c (patch) | |
tree | 0510bdf9e8e9c0592c4dfe7c207ea4731f6f7d81 /Kernel/API | |
parent | bf247fb45f0c21121281609949e5891237721d62 (diff) | |
download | serenity-65f2270232ad4b02af0ed5e02ee63e8dc5ef4c0c.zip |
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.
Diffstat (limited to 'Kernel/API')
-rw-r--r-- | Kernel/API/Syscall.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 4581d0c204..a882df0a35 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -86,6 +86,7 @@ namespace Kernel { S(getpgrp) \ S(fork) \ S(execve) \ + S(dup2) \ S(sigaction) \ S(umask) \ S(getgroups) \ |