mirror of
https://git.busybox.net/busybox
synced 2025-08-29 05:24:38 +02:00
14 lines
388 B
Text
Executable file
14 lines
388 B
Text
Executable file
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.
|
|
read HELLO <test.fifo
|
|
echo "$HELLO"
|
|
|
|
echo "Done:$?"
|
|
rm -f test.fifo
|