diff options
author | Hendiadyoin1 <leon2002.la@gmail.com> | 2021-12-18 18:39:18 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-18 10:31:18 -0800 |
commit | f38d32535c44069b4681e2d1a8b484e98dd5ab28 (patch) | |
tree | 25cd5566090309a9b28ae7a02f66c98a7d09a956 /Kernel/Syscalls/pipe.cpp | |
parent | c860e0ab9541c430fcbb48c39fcb8f487d5894ac (diff) | |
download | serenity-f38d32535c44069b4681e2d1a8b484e98dd5ab28.zip |
Kernel: Access OpenFileDescriptions::max_open() statically in Syscalls
Diffstat (limited to 'Kernel/Syscalls/pipe.cpp')
-rw-r--r-- | Kernel/Syscalls/pipe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/pipe.cpp b/Kernel/Syscalls/pipe.cpp index e517bf2d72..e090e028d0 100644 --- a/Kernel/Syscalls/pipe.cpp +++ b/Kernel/Syscalls/pipe.cpp @@ -13,7 +13,7 @@ ErrorOr<FlatPtr> Process::sys$pipe(int pipefd[2], int flags) { VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) REQUIRE_PROMISE(stdio); - if (fds().open_count() + 2 > fds().max_open()) + if (fds().open_count() + 2 > OpenFileDescriptions::max_open()) return EMFILE; // Reject flags other than O_CLOEXEC, O_NONBLOCK if ((flags & (O_CLOEXEC | O_NONBLOCK)) != flags) |