test "$UNAME" = "Linux" || skip cd "$TEST" mkfifo hang pid wait running ( # Create a zombie process cat hang >/dev/null & # Write the PID to pid echo $! >pid # Don't wait on the zombie process exec cat wait hang >running ) & # Kill the parent cat on exit defer kill -9 %1 # Read the child PID read -r pid wait & read -r _ /dev/null