mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Merge "astfd: Not maximum size of a single file but maximum file descriptors." into 13
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user