From 0d84421f9315a974de821dd5ce99ce2c8728d3a2 Mon Sep 17 00:00:00 2001 From: Alexander Traud Date: Wed, 8 Jun 2016 12:58:48 +0200 Subject: [PATCH] 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 --- main/astfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/astfd.c b/main/astfd.c index d2cb73a6bd..a96471d60e 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 { -- 2.47.2