aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-redir/redir_EINTR1.tests
blob: cede4d4d8bd6bc6ba06b5926b3df043ce3f2c06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
rm -f test.fifo
mkfifo test.fifo

(sleep 1; kill -chld $$) &
(sleep 2; echo Hello >test.fifo) &

# We get open("test.fifo") interrupted by SIGCHLD from the first subshell.
# The shell MUST retry the open (no printing of error messages).
# Then, the second subshell opens fifo for writing and open unblocks and succeeds.
cat <test.fifo

echo "Done:$?"
rm -f test.fifo