From: Alexander Traud Date: Wed, 8 Jun 2016 10:58:48 +0000 (+0200) Subject: astfd: Not maximum size of a single file but maximum file descriptors. X-Git-Tag: 11.23.0-rc1~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8598b9b26712d1a8bf0f844064f44081cd44c372;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/astfd.c b/main/astfd.c index 35f9454a3a..1e767036c9 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 {