]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fuzzy: don't use killall
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 20:41:30 +0000 (07:41 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 13:59:47 +0000 (21:59 +0800)
commit828f70eb9be53651ae74312cdb0029ae04b38af6
tree2a40408413c8b32ca3edd05ad4f30dae0d1be192
parent8973af00ec212fd7d863998762e1099871729e00
fuzzy: don't use killall

Having test cleanup call 'killall xfs_io fsx xfs_scrub' results in a
system wide process kill, rather than just the processes the test is
running directly.

Make sure we only kill processes the fuzz test directly owns. We can
do this with 'pkill --parent $$ <process names>' to limit the search
for processes to kill to just the children of the current process.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/fuzzy