]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic/038: kill background threads on interrupt
authorDave Chinner <dchinner@redhat.com>
Thu, 2 Jun 2022 00:31:22 +0000 (10:31 +1000)
committerZorro Lang <zlang@kernel.org>
Fri, 3 Jun 2022 05:17:42 +0000 (13:17 +0800)
commite75ea385432ec03b7a4af3d9ef874195e1e5db5d
treeda0f93ea4e1b87cc55b8a4d31bb70791efbb6207
parente35f87e97507adf72108b96ec36cea9310d8136a
generic/038: kill background threads on interrupt

When I ctrl-c g/038, it either does nothing or it leaves processes
running in the background. It is not cleaning up it's background
processes correctly, so add kill vectors into the cleanup. Make sure
we only kill in the cleanup trap if the background processes are
running.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/038