Merge "astfd: Not maximum size of a single file but maximum file descriptors." into 13

This commit is contained in:
zuul
2016-06-09 08:21:35 -05:00
committed by Gerrit Code Review

View File

@@ -271,7 +271,7 @@ static char *handle_show_fd(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
case CLI_GENERATE: case CLI_GENERATE:
return NULL; return NULL;
} }
getrlimit(RLIMIT_FSIZE, &rl); getrlimit(RLIMIT_NOFILE, &rl);
if (rl.rlim_cur == RLIM_INFINITY || rl.rlim_max == RLIM_INFINITY) { if (rl.rlim_cur == RLIM_INFINITY || rl.rlim_max == RLIM_INFINITY) {
ast_copy_string(line, "unlimited", sizeof(line)); ast_copy_string(line, "unlimited", sizeof(line));
} else { } else {