[LTP] [PATCH v2 0/2] pipe07: close /proc/self/fd after counting fds
Edward Liaw
edliaw@google.com
Mon Oct 2 19:34:14 CEST 2023
Leaving the directory fd open will count against the max number of fds
opened, so the final expected count will be off when (max_fds -
record_open_fds()) is even.
v1->v2:
Split patch into bugfix and refactor
Fix bug in refactor that caused exp_num_pipes to not round down to
nearest even integer
Edward Liaw (2):
pipe07: close /proc/self/fd after counting fds
pipe07: refactor exp_num_pipes
testcases/kernel/syscalls/pipe/pipe07.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--
2.42.0.582.g8ccd20d70d-goog
More information about the ltp
mailing list