aboutsummaryrefslogtreecommitdiff
path: root/zenstore-test/zenstore-test.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-12 17:22:22 +0200
committerDan Engelbrecht <[email protected]>2022-04-12 17:22:22 +0200
commit253ed18b95ac42f2ad4c906ab6bc45210bbacb95 (patch)
tree751a9b6a80a4af27134bf799e001f78321c9412d /zenstore-test/zenstore-test.cpp
parentset open file limits after initialize of logging (diff)
downloadzen-253ed18b95ac42f2ad4c906ab6bc45210bbacb95.tar.xz
zen-253ed18b95ac42f2ad4c906ab6bc45210bbacb95.zip
log resource limit info
Diffstat (limited to 'zenstore-test/zenstore-test.cpp')
-rw-r--r--zenstore-test/zenstore-test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/zenstore-test/zenstore-test.cpp b/zenstore-test/zenstore-test.cpp
index 33844fa41..4a4035ab1 100644
--- a/zenstore-test/zenstore-test.cpp
+++ b/zenstore-test/zenstore-test.cpp
@@ -34,8 +34,11 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
else
{
struct rlimit NewLimit = Limit;
- NewLimit.rlim_cur = 10240;
- NewLimit.rlim_max = 10240;
+// NewLimit.rlim_cur = 10240;
+// NewLimit.rlim_max = 10240;
+ NewLimit.rlim_cur = NewLimit.rlim_max;
+ ZEN_WARN("changing RLIMIT_NOFILE from rlim_cur = {}, rlim_max {} to rlim_cur = {}, rlim_max {}", Limit.rlim_cur, Limit.rlim_max, NewLimit.rlim_cur, NewLimit.rlim_max);
+
Error = setrlimit(RLIMIT_NOFILE, &NewLimit);
if (Error != 0)
{