Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | support: Also return fd when it is 0 | Siddhesh Poyarekar | 2021-10-06 | 1 | -7/+7 |
| | | | | | | | | The fd validity check in open_dev_null checks if fd > 0, which would lead to a leaked fd if it is == 0. Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> | ||||
* | support: Add support_open_dev_null_range | Adhemerval Zanella | 2021-08-26 | 1 | -0/+134 |
It returns a range of file descriptor referring to the '/dev/null' pathname. The function takes care of restarting the open range if a file descriptor is found within the specified range and also increases RLIMIT_NOFILE if required. Checked on x86_64-linux-gnu. |