mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
conf_reload(): No need to reload global rlimits again
This patch removes duplicate reload of global_rlimit[], which parse_conf() already has done. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
338810b886
commit
6ecb86b4a7
1 file changed
-4
@@ -491,10 +491,6 @@ int conf_reload(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update global limits in case operator used prlimit(1) on us */
|
|
||||||
for (i = 0; i < RLIMIT_NLIMITS; i++)
|
|
||||||
getrlimit(i, &global_rlimit[i]);
|
|
||||||
|
|
||||||
for (i = 0; i < num; i++) {
|
for (i = 0; i < num; i++) {
|
||||||
char *name = e[i]->d_name;
|
char *name = e[i]->d_name;
|
||||||
char path[LINE_SIZE];
|
char path[LINE_SIZE];
|
||||||
|
|||||||
Reference in new issue
Block a user