fs/test.sh | 2 ++ diff --git a/fs/test.sh b/fs/test.sh index abae61a4a50fc96ec49a2a7009a258fafea4a15d..5374ed86b6a89a615c9e6a5fb109223400c6e5a8 100755 --- a/fs/test.sh +++ b/fs/test.sh @@ -26,7 +26,9 @@ ) } ( check_file ) & +check_file_pid=$! +trap "kill $torrentfs_pid $check_file_pid" EXIT wait -n status=$? sudo umount mnt