mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Avoid setting maxfiles for a remote asterisk
Setting maxfiles (maximum number of open files) has no practical effect on a remote asterisk (rasterisk, rasterisk -x). It has an ill effect of printing an extra message, which may be annoying in case of -x. ASTERISK-27105 #close Change-Id: Iaf9eb344e4b4b517df91b736b27ec55f6a6921a2
This commit is contained in:
@@ -3681,7 +3681,9 @@ static void ast_readconfig(void)
|
|||||||
/* Set the maximum amount of open files */
|
/* Set the maximum amount of open files */
|
||||||
} else if (!strcasecmp(v->name, "maxfiles")) {
|
} else if (!strcasecmp(v->name, "maxfiles")) {
|
||||||
ast_option_maxfiles = atoi(v->value);
|
ast_option_maxfiles = atoi(v->value);
|
||||||
|
if (!ast_opt_remote) {
|
||||||
set_ulimit(ast_option_maxfiles);
|
set_ulimit(ast_option_maxfiles);
|
||||||
|
}
|
||||||
/* What user to run as */
|
/* What user to run as */
|
||||||
} else if (!strcasecmp(v->name, "runuser")) {
|
} else if (!strcasecmp(v->name, "runuser")) {
|
||||||
ast_copy_string(cfg_paths.run_user, v->value, sizeof(cfg_paths.run_user));
|
ast_copy_string(cfg_paths.run_user, v->value, sizeof(cfg_paths.run_user));
|
||||||
|
Reference in New Issue
Block a user