Skip to content

pipe07: close /proc/self/fd after counting fds

Edward Liaw via ltp ltp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

Split patch into bugfix and refactor
Fix bug in refactor that caused exp_num_pipes to not round down to nearest even integer

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pipe07: close /proc/self/fd after counting fdstestcases/kernel/syscalls/pipe/pipe07.c+2 -00 replies
2/2pipe07: refactor exp_num_pipestestcases/kernel/syscalls/pipe/pipe07.c+3 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [LTP] [PATCH v2 0/2] pipe07: close /proc/self/fd after counting fds

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

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp