Commit f4ff166
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: [email protected]
Fixes: 04b57c9 ("selftests: mptcp: join: stop transfer when check is done (part 2)")
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Link: https://patch.msgid.link/20251110-net-mptcp-sft-join-unstable-v1-6-a4332c714e10@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent acc03eb commit f4ff166
2 files changed
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3645 | 3645 | | |
3646 | 3646 | | |
3647 | 3647 | | |
3648 | | - | |
| 3648 | + | |
3649 | 3649 | | |
3650 | 3650 | | |
3651 | 3651 | | |
| |||
3673 | 3673 | | |
3674 | 3674 | | |
3675 | 3675 | | |
3676 | | - | |
| 3676 | + | |
3677 | 3677 | | |
3678 | 3678 | | |
3679 | 3679 | | |
| |||
3694 | 3694 | | |
3695 | 3695 | | |
3696 | 3696 | | |
3697 | | - | |
| 3697 | + | |
3698 | 3698 | | |
3699 | 3699 | | |
3700 | 3700 | | |
| |||
3718 | 3718 | | |
3719 | 3719 | | |
3720 | 3720 | | |
3721 | | - | |
| 3721 | + | |
3722 | 3722 | | |
3723 | 3723 | | |
3724 | 3724 | | |
| |||
3744 | 3744 | | |
3745 | 3745 | | |
3746 | 3746 | | |
3747 | | - | |
| 3747 | + | |
3748 | 3748 | | |
3749 | 3749 | | |
3750 | 3750 | | |
| |||
3774 | 3774 | | |
3775 | 3775 | | |
3776 | 3776 | | |
3777 | | - | |
| 3777 | + | |
3778 | 3778 | | |
3779 | 3779 | | |
3780 | 3780 | | |
| |||
3829 | 3829 | | |
3830 | 3830 | | |
3831 | 3831 | | |
3832 | | - | |
| 3832 | + | |
3833 | 3833 | | |
3834 | 3834 | | |
3835 | 3835 | | |
| |||
3903 | 3903 | | |
3904 | 3904 | | |
3905 | 3905 | | |
3906 | | - | |
| 3906 | + | |
3907 | 3907 | | |
3908 | 3908 | | |
3909 | 3909 | | |
| |||
3951 | 3951 | | |
3952 | 3952 | | |
3953 | 3953 | | |
3954 | | - | |
| 3954 | + | |
3955 | 3955 | | |
3956 | 3956 | | |
3957 | 3957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
353 | 374 | | |
354 | 375 | | |
355 | 376 | | |
| |||
0 commit comments