mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-18 11:46:18 -04:00
Fix typo in set_limits
- Setting and getting nofile not process limits Authored-by: Tyler Ramer <tramer@pivotal.io>
This commit is contained in:
parent
16f39b12f5
commit
4a9906739a
4
main.c
4
main.c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user