]> Sergey Matveev's repositories - btrtrc.git/blobdiff - fs/test.sh
Handle torrentfs failure in test.sh
[btrtrc.git] / fs / test.sh
index abae61a4a50fc96ec49a2a7009a258fafea4a15d..5374ed86b6a89a615c9e6a5fb109223400c6e5a8 100755 (executable)
@@ -26,7 +26,9 @@ check_file() {
 }
 
 ( check_file ) &
+check_file_pid=$!
 
+trap "kill $torrentfs_pid $check_file_pid" EXIT
 wait -n
 status=$?
 sudo umount mnt