commit | 98db8e883c0fedcfbf74ba7922821ff3be0e7c98 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Sun Sep 19 08:15:07 2021 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Sep 19 08:15:07 2021 -0600 |
tree | 45fe05c23e8cc5fa583ec698992a3530d117a557 | |
parent | 8de1e67876468f1ba123af7266ecf3d5ad57995b [diff] |
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>