Fix typo in set_limits

- Setting and getting nofile not process limits

Authored-by: Tyler Ramer <tramer@pivotal.io>
This commit is contained in:
Tyler Ramer 2019-09-11 09:17:37 -04:00
parent 16f39b12f5
commit 4a9906739a

4
main.c
View File

@ -4873,13 +4873,13 @@ set_limits ()
struct rlimit l;
if (getrlimit (RLIMIT_NOFILE, &l) < 0)
error (EXIT_FAILURE, errno, "cannot read process rlimit");
error (EXIT_FAILURE, errno, "cannot read nofile rlimit");
/* Set the soft limit to the hard limit. */
l.rlim_cur = l.rlim_max;
if (setrlimit (RLIMIT_NOFILE, &l) < 0)
error (EXIT_FAILURE, errno, "cannot set process rlimit");
error (EXIT_FAILURE, errno, "cannot set nofile rlimit");
}
int