Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when the current soft limit is higher than the new value, ulimit fails to set the hard limit as (tested on Rawhide): [root@rawhide ~]# ulimit -n -H 1048575 -bash: ulimit: open files: cannot modify limit: Invalid argument to avoid the problem, set also the soft limit: [root@rawhide ~]# ulimit -n -H 12345678 [root@rawhide ~]# ulimit -n -H 1048575 -bash: ulimit: open files: cannot modify limit: Invalid argument [root@rawhide ~]# ulimit -n -SH 1048575 [root@rawhide ~]# ulimit -n -H 1048575 commit 71d5ee0 introduced the issue. Signed-off-by: Giuseppe Scrivano <[email protected]>
- Loading branch information