]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
note some dead code in set_max_file_descriptors
authorNick Mathewson <nickm@torproject.org>
Sat, 11 Jul 2015 20:53:32 +0000 (16:53 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 11 Jul 2015 20:53:32 +0000 (16:53 -0400)
src/common/compat.c

index 34f6ea2ba36f29d2688d32b76796399f1e5de99d..9d01c9deb31ccdf6c8e9d90587d62dd610201332 100644 (file)
@@ -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)