summaryrefslogtreecommitdiff
path: root/src/basic/def.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-01 17:37:01 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-16 16:33:55 +0200
commitd6e069f412edc02a0f2130fa47955d02e378d5f5 (patch)
treefaaa7bd78044b9a0063a8bd0cade2ffc034382f0 /src/basic/def.h
parentd3aeddb8d19b9bb992ffea6f7a514d90ba697bb9 (diff)
downloadsystemd-d6e069f412edc02a0f2130fa47955d02e378d5f5.tar.gz
def: add a "high" limit for RLIMIT_NOFILE
This simply adds a new constant we can use for bumping RLIMIT_NOFILE to a "high" value. It default to 256K for now, which is pretty high, but smaller than the kernel built-in limit of 1M. Previously, some tools that needed a higher RLIMIT_NOFILE bumped it to 16K. This new define goes substantially higher than this, following the discussion with the kernel folks.
Diffstat (limited to 'src/basic/def.h')
-rw-r--r--src/basic/def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/def.h b/src/basic/def.h
index 4d515c11b6..05e352bc4f 100644
--- a/src/basic/def.h
+++ b/src/basic/def.h
@@ -75,3 +75,5 @@
_CONF_PATHS_SPLIT_USR(n))
#define LONG_LINE_MAX (1U*1024U*1024U)
+
+#define HIGH_RLIMIT_NOFILE (256*1024)