diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-06-02 16:37:11 -0400 |
---|---|---|
committer | David Goulet <dgoulet@ev0ke.net> | 2015-08-05 13:17:33 -0400 |
commit | 79798a23637db7e5a4bb05c860b2932b3b1a3010 (patch) | |
tree | 26570576b67d283a1e6845877b893a02d8479f63 /changes | |
parent | 9338847bf427b59d6dd5634fc2f8998ce0e269c1 (diff) | |
download | tor-79798a23637db7e5a4bb05c860b2932b3b1a3010.tar.gz tor-79798a23637db7e5a4bb05c860b2932b3b1a3010.zip |
Set the open file limit to the current value before changing it
If setrlimit() failed, max_out wasn't set in set_max_file_descriptors()
ending in a state where we don't use ULIMIT_BUFFER for things like tor
private key files.
Also fix the set_max_file_descriptors() documentation.
Fixes #16274
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug16274 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug16274 b/changes/bug16274 new file mode 100644 index 0000000000..4eec571761 --- /dev/null +++ b/changes/bug16274 @@ -0,0 +1,5 @@ + o Minor bugfix (open file limit): + - Fix set_max_file_descriptors() to set by default the max open file + limit to the current limit in case setrlimit() fails so we at least + have a usable value; Fixes #16274; bugfix on tor-0.2.0.10-alpha~71; + Patch by dgoulet. |