Message ID | 20190125114624.4004-1-fdmanana@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] fstests: btrfs/081 declare local variables as local | expand |
diff --git a/tests/btrfs/081 b/tests/btrfs/081 index 7e83525f..726a370f 100755 --- a/tests/btrfs/081 +++ b/tests/btrfs/081 @@ -69,6 +69,12 @@ create_target_file() reader_loop() { + # Wait for any running 'cat' subcommand before exitting so that after + # the test kills the reader loop subshell it does not fail with an + # error message from a 'cat' subcommand due to the test file being + # temporarily unavailable due to the scratch fs unmount operation. + trap "wait; exit" SIGTERM + local name=$1 while true; do