From a05f88091caf35b3e14f4195f36fca9dbeea6dc8 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 20 Mar 2024 17:38:53 +0200 Subject: [PATCH] Add stubs for setting RLIMIT_NOFILE and RLIMIT_STACK --- syscalls/linux.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/syscalls/linux.cpp b/syscalls/linux.cpp index c35a383..85e29c2 100644 --- a/syscalls/linux.cpp +++ b/syscalls/linux.cpp @@ -1984,6 +1984,16 @@ static int linux_prlimit64(SysFrm *, pid_t pid, int resource, switch (resource) { + case RLIMIT_NOFILE: + { + fixme("Setting RLIMIT_NOFILE is stub"); + return 0; + } + case RLIMIT_STACK: + { + fixme("Setting RLIMIT_STACK is stub"); + return 0; + } case RLIMIT_CPU: case RLIMIT_FSIZE: case RLIMIT_DATA: