src/register: improve RLIMIT_NOFILE increase

Only do it if we run into EMFILE, seems like the prudent thing to do,
avoiding any getrlimit checking if the operation succeeds. And more
importantly, add to the rlim_cur, don't just set it to what we need.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed