Skip to content
Snippets Groups Projects
Commit de397d57 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

note some dead code in set_max_file_descriptors

parent 8507d75c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment