diff options
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/fcntl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/Syscalls/fcntl.cpp b/Kernel/Syscalls/fcntl.cpp index 8b9d9b0a95..1fb961116a 100644 --- a/Kernel/Syscalls/fcntl.cpp +++ b/Kernel/Syscalls/fcntl.cpp @@ -45,7 +45,10 @@ ErrorOr<FlatPtr> Process::sys$fcntl(int fd, int cmd, uintptr_t arg) TRY(description->get_flock(Userspace<flock*>(arg))); return 0; case F_SETLK: - TRY(description->apply_flock(Process::current(), Userspace<flock const*>(arg))); + TRY(description->apply_flock(Process::current(), Userspace<flock const*>(arg), ShouldBlock::No)); + return 0; + case F_SETLKW: + TRY(description->apply_flock(Process::current(), Userspace<flock const*>(arg), ShouldBlock::Yes)); return 0; default: return EINVAL; |