aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-07-11 16:53:32 -0400
committerNick Mathewson <nickm@torproject.org>2015-07-11 16:53:32 -0400
commitde397d57c9ea06ca3e0bba13f393cd9208611cb7 (patch)
tree679518c1c7c3d0debfe0d42472b00c756405256f /src/common
parent8507d75c8231a3af372beb0c695af078b4e27a7b (diff)
downloadtor-de397d57c9ea06ca3e0bba13f393cd9208611cb7.tar.gz
tor-de397d57c9ea06ca3e0bba13f393cd9208611cb7.zip
note some dead code in set_max_file_descriptors
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 34f6ea2ba3..9d01c9deb3 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -1642,6 +1642,9 @@ set_max_file_descriptors(rlim_t limit, int *max_out)
return -1;
}
if (limit == 0) {
+ /* XXXX DEAD CODE We can't reach this point, since the first "if" in this
+ * function increases limit if it started out less than ULIMIT_BUFFER */
+
/* If limit == 0, return the maximum value without setting it. */
limit = rlim.rlim_max;
if (limit > INT_MAX)