Commit 852b644
selftests: mptcp: join: properly kill background tasks
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>1 parent ee79980 commit 852b644
2 files changed
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3831 | 3831 | | |
3832 | 3832 | | |
3833 | 3833 | | |
3834 | | - | |
| 3834 | + | |
3835 | 3835 | | |
3836 | 3836 | | |
3837 | 3837 | | |
| |||
3859 | 3859 | | |
3860 | 3860 | | |
3861 | 3861 | | |
3862 | | - | |
| 3862 | + | |
3863 | 3863 | | |
3864 | 3864 | | |
3865 | 3865 | | |
| |||
3880 | 3880 | | |
3881 | 3881 | | |
3882 | 3882 | | |
3883 | | - | |
| 3883 | + | |
3884 | 3884 | | |
3885 | 3885 | | |
3886 | 3886 | | |
| |||
3904 | 3904 | | |
3905 | 3905 | | |
3906 | 3906 | | |
3907 | | - | |
| 3907 | + | |
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
| |||
3930 | 3930 | | |
3931 | 3931 | | |
3932 | 3932 | | |
3933 | | - | |
| 3933 | + | |
3934 | 3934 | | |
3935 | 3935 | | |
3936 | 3936 | | |
| |||
3960 | 3960 | | |
3961 | 3961 | | |
3962 | 3962 | | |
3963 | | - | |
| 3963 | + | |
3964 | 3964 | | |
3965 | 3965 | | |
3966 | 3966 | | |
| |||
4015 | 4015 | | |
4016 | 4016 | | |
4017 | 4017 | | |
4018 | | - | |
| 4018 | + | |
4019 | 4019 | | |
4020 | 4020 | | |
4021 | 4021 | | |
| |||
4089 | 4089 | | |
4090 | 4090 | | |
4091 | 4091 | | |
4092 | | - | |
| 4092 | + | |
4093 | 4093 | | |
4094 | 4094 | | |
4095 | 4095 | | |
| |||
4137 | 4137 | | |
4138 | 4138 | | |
4139 | 4139 | | |
4140 | | - | |
| 4140 | + | |
4141 | 4141 | | |
4142 | 4142 | | |
4143 | 4143 | | |
| |||
| 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