| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2021-10-06 | support: Also return fd when it is 0 | Siddhesh Poyarekar | 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> (cherry picked from commit 27b6edbb090f736b101f569620d8ad0e7217ddf8) | |||||
| 2021-09-21 | support: Add support_open_dev_null_range | Adhemerval Zanella | 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. (cherry picked from commit e814f4b04ee413a7bb3dfa43e74c8fb4abf58359) | |||||
