Hi Liu,
On 02/07/2024 06:05, Liu Jing wrote:
in main_loop_s function, when the open(cfg_input, O_RDONLY) function is run,
Please see my previous message: the commit description should have lines of maximum ~72 chars.
the last fd is not closed if the "--cfg_repeat > 0" branch is not taken.
Fixes: 05be5e273c84("selftests: mptcp: add disconnect tests").
There should be a space after the commit ID, not dot at the end, and no blank line between git tags ("Fixes:", "Signed-off-by", etc.).
Signed-off-by: Liu Jing liujing@cmss.chinamobile.com
Changes from v1
- add close function in main_loop_s function
It looks like you didn't change the code as I suggested: moving...
if (cfg_input) close(fd);
before 'if (--cfg_repeat > 0)'.
Anyway, I just applied your patch in our tree (fixes for -net) with all the modifications mentioned above. We will send it to netdev later with other patches.
New patches for t/upstream-net and t/upstream: - d2657c3f784a: selftests: mptcp: always close input's FD if opened - Results: a9e719ce2340..fa4c0289d475 (export-net) - Results: b49e920db095..dcc28bf9bc6a (export)
Tests are now in progress:
- export-net: https://github.com/multipath-tcp/mptcp_net-next/commit/fa397dbd31963500c42d3... - export: https://github.com/multipath-tcp/mptcp_net-next/commit/ff673f57b4479a78dd9eb...
Cheers, Matt