summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-read
diff options
context:
space:
mode:
authorDenys Vlasenko2017-05-22 19:34:45 +0200
committerDenys Vlasenko2017-05-22 19:34:45 +0200
commitf5470419404d643070db99d058405b714695b817 (patch)
tree7ed502471976679437b86f2e2cb38c14984f8a1e /shell/ash_test/ash-read
parent0c63299b84513ff995413f820cb5f3d546c0c5d7 (diff)
downloadbusybox-f5470419404d643070db99d058405b714695b817.zip
busybox-f5470419404d643070db99d058405b714695b817.tar.gz
ash,hush: fix SIGCHLD interrupting read builtin
function old new delta readcmd 169 217 +48 shell_builtin_read 1087 1097 +10 localcmd 366 364 -2 builtin_read 197 193 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 58/-6) Total: 52 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-read')
-rw-r--r--shell/ash_test/ash-read/read_SIGCHLD.right2
-rwxr-xr-xshell/ash_test/ash-read/read_SIGCHLD.tests4
2 files changed, 6 insertions, 0 deletions
diff --git a/shell/ash_test/ash-read/read_SIGCHLD.right b/shell/ash_test/ash-read/read_SIGCHLD.right
new file mode 100644
index 0000000..b3dc7ab
--- /dev/null
+++ b/shell/ash_test/ash-read/read_SIGCHLD.right
@@ -0,0 +1,2 @@
+x='Ok'
+exitcode:0
diff --git a/shell/ash_test/ash-read/read_SIGCHLD.tests b/shell/ash_test/ash-read/read_SIGCHLD.tests
new file mode 100755
index 0000000..c5f673a
--- /dev/null
+++ b/shell/ash_test/ash-read/read_SIGCHLD.tests
@@ -0,0 +1,4 @@
+x=BAD
+{ sleep 0.4; echo Ok; } | { sleep 0.2 & read x; echo "x='$x'"; }
+echo "exitcode:$?"
+