Is there anyway to set the (hard limit) open-file-max (setrlimit, RLIMIT_NOFILE) to the maximum?
suppose that the pid of the process is zero (root). I just want to increase the RLIMIT_NOFILE to the maximum, but I don't know what is the maximum value.
(RLIM_INFINITY does not work anyway).