← Commit list

d18c9eadf

Denys Vlasenko
Denys Vlasenko
2025-08-11
SUCCESS Duration: 156s

Subject

shells: testcase: add another test for EINTR on fifo open

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash_test/ash-redir/redir_EINTR2.right+2 -0
@@ -0,0 +1,2 @@
+Hello
+Done:0
shell/ash_test/ash-redir/redir_EINTR2.tests+14 -0
@@ -0,0 +1,14 @@
+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
shell/hush_test/hush-redir/redir_EINTR2.right+2 -0
@@ -0,0 +1,2 @@
+Hello
+Done:0
shell/hush_test/hush-redir/redir_EINTR2.tests+14 -0
@@ -0,0 +1,14 @@
+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