public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 0/2] pipe07: close /proc/self/fd after counting fds
@ 2023-10-02 17:34 Edward Liaw via ltp
  2023-10-02 17:34 ` [LTP] [PATCH v2 1/2] " Edward Liaw via ltp
  2023-10-02 17:34 ` [LTP] [PATCH v2 2/2] pipe07: refactor exp_num_pipes Edward Liaw via ltp
  0 siblings, 2 replies; 4+ messages in thread
From: Edward Liaw via ltp @ 2023-10-02 17:34 UTC (permalink / raw)
  To: ltp; +Cc: kernel-team

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-26 10:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-02 17:34 [LTP] [PATCH v2 0/2] pipe07: close /proc/self/fd after counting fds Edward Liaw via ltp
2023-10-02 17:34 ` [LTP] [PATCH v2 1/2] " Edward Liaw via ltp
2023-10-02 17:34 ` [LTP] [PATCH v2 2/2] pipe07: refactor exp_num_pipes Edward Liaw via ltp
2023-10-26 10:03   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox