summaryrefslogtreecommitdiff
path: root/main/astfd.c
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2016-06-08 12:58:48 +0200
committerAlexander Traud <pabstraud@compuserve.com>2016-06-08 13:00:23 +0200
commit0d84421f9315a974de821dd5ce99ce2c8728d3a2 (patch)
tree1ab498440a84d48d01d55d2cbda82d7e12512b42 /main/astfd.c
parentc9b873add8054ea18349cef972b1b12176e48807 (diff)
astfd: Not maximum size of a single file but maximum file descriptors.
With menuselect "DEBUG_FD_LEAKS" and CLI "core show fd", the maximum size of a single file was shown. Now, the maximum number of possible file descriptors is shown. ASTERISK-26097 Change-Id: Icf98d145774b38cac144ca76d19eaef42ce659a3
Diffstat (limited to 'main/astfd.c')
-rw-r--r--main/astfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astfd.c b/main/astfd.c
index d2cb73a6b..a96471d60 100644
--- a/main/astfd.c
+++ b/main/astfd.c
@@ -271,7 +271,7 @@ static char *handle_show_fd(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
case CLI_GENERATE:
return NULL;
}
- getrlimit(RLIMIT_FSIZE, &rl);
+ getrlimit(RLIMIT_NOFILE, &rl);
if (rl.rlim_cur == RLIM_INFINITY || rl.rlim_max == RLIM_INFINITY) {
ast_copy_string(line, "unlimited", sizeof(line));
} else {