]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Handle torrentfs failure in test.sh
authorMatt Joiner <anacrolix@gmail.com>
Fri, 8 Sep 2023 02:41:20 +0000 (12:41 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 8 Sep 2023 02:41:20 +0000 (12:41 +1000)
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