Commit 2af5611
selftests: mptcp: join: properly kill background tasks
commit 852b644acbce1529307a4bb283752c4e77b5cda7 upstream.
The 'run_tests' function is executed in the background, but killing its
associated PID would not kill the children tasks running in the
background.
To properly kill all background tasks, 'kill -- -PID' could be used, but
this requires kill from procps-ng. Instead, all children tasks are
listed using 'ps', and 'kill' is called with all PIDs of this group.
Fixes: 31ee4ad ("selftests: mptcp: join: stop transfer when check is done (part 1)")
Cc: stable@vger.kernel.org
Fixes: 04b57c9 ("selftests: mptcp: join: stop transfer when check is done (part 2)")
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251110-net-mptcp-sft-join-unstable-v1-6-a4332c714e10@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ab9d10109ad0891ccf8b7401d9acbd0657a876d6)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>1 parent e2b0d01 commit 2af5611
File tree
2 files changed
+30
-9
lines changed- tools/testing/selftests/net/mptcp
2 files changed
+30
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3616 | 3616 | | |
3617 | 3617 | | |
3618 | 3618 | | |
3619 | | - | |
| 3619 | + | |
3620 | 3620 | | |
3621 | 3621 | | |
3622 | 3622 | | |
| |||
3644 | 3644 | | |
3645 | 3645 | | |
3646 | 3646 | | |
3647 | | - | |
| 3647 | + | |
3648 | 3648 | | |
3649 | 3649 | | |
3650 | 3650 | | |
| |||
3665 | 3665 | | |
3666 | 3666 | | |
3667 | 3667 | | |
3668 | | - | |
| 3668 | + | |
3669 | 3669 | | |
3670 | 3670 | | |
3671 | 3671 | | |
| |||
3689 | 3689 | | |
3690 | 3690 | | |
3691 | 3691 | | |
3692 | | - | |
| 3692 | + | |
3693 | 3693 | | |
3694 | 3694 | | |
3695 | 3695 | | |
| |||
3715 | 3715 | | |
3716 | 3716 | | |
3717 | 3717 | | |
3718 | | - | |
| 3718 | + | |
3719 | 3719 | | |
3720 | 3720 | | |
3721 | 3721 | | |
| |||
3745 | 3745 | | |
3746 | 3746 | | |
3747 | 3747 | | |
3748 | | - | |
| 3748 | + | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | 3751 | | |
| |||
3800 | 3800 | | |
3801 | 3801 | | |
3802 | 3802 | | |
3803 | | - | |
| 3803 | + | |
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
| |||
3874 | 3874 | | |
3875 | 3875 | | |
3876 | 3876 | | |
3877 | | - | |
| 3877 | + | |
3878 | 3878 | | |
3879 | 3879 | | |
3880 | 3880 | | |
| |||
3922 | 3922 | | |
3923 | 3923 | | |
3924 | 3924 | | |
3925 | | - | |
| 3925 | + | |
3926 | 3926 | | |
3927 | 3927 | | |
3928 | 3928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
330 | 351 | | |
331 | 352 | | |
332 | 353 | | |
| |||
0 commit comments