summaryrefslogtreecommitdiff
path: root/src/prefs.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2014-07-15 08:16:13 +0200
committerNils Maier <maierman@web.de>2014-07-22 21:58:31 +0200
commit8732a244335488e672cf6dcdddf23d6b7454ce8d (patch)
tree0dd5fc3f1286aca39c49ce7be4005598fc49221c /src/prefs.cc
parent70a80b1455e11e5572eac4bd4b7ca647c45bbf81 (diff)
Try to set sane limits for RLIMIT_NO_FILE
E.g. on OSX the default is 256, which isn't exactly compatible with torrent downloads. Closes GH-257
Diffstat (limited to 'src/prefs.cc')
-rw-r--r--src/prefs.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prefs.cc b/src/prefs.cc
index 8367f38d..4ceea78a 100644
--- a/src/prefs.cc
+++ b/src/prefs.cc
@@ -365,6 +365,8 @@ PrefPtr PREF_RPC_SECRET = makePref("rpc-secret");
PrefPtr PREF_DSCP = makePref("dscp");
// values: true | false
PrefPtr PREF_PAUSE_METADATA = makePref("pause-metadata");
+// values: 1*digit
+PrefPtr PREF_RLIMIT_NOFILE = makePref("rlimit-nofile");
/**
* FTP related preferences