summaryrefslogtreecommitdiffstats
path: root/tests/posix/readdir_error.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/posix/readdir_error.sh')
-rw-r--r--tests/posix/readdir_error.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/posix/readdir_error.sh b/tests/posix/readdir_error.sh
index 9a002a1..fc48eb1 100644
--- a/tests/posix/readdir_error.sh
+++ b/tests/posix/readdir_error.sh
@@ -13,7 +13,7 @@ mkfifo scratch/{fever,pid,wait,running}
) &
# Kill the parent cat on exit
-trap "kill -9 %1" EXIT
+defer kill -9 %1
# Read the child PID
read -r pid <scratch/pid