瀏覽代碼

note some dead code in set_max_file_descriptors

Nick Mathewson 8 年之前
父節點
當前提交
de397d57c9
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/common/compat.c

+ 3 - 0
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)