aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-read
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-05-22 19:34:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-05-22 19:34:45 +0200
commitf5470419404d643070db99d058405b714695b817 (patch)
tree7ed502471976679437b86f2e2cb38c14984f8a1e /shell/hush_test/hush-read
parent0c63299b84513ff995413f820cb5f3d546c0c5d7 (diff)
downloadbusybox-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/hush_test/hush-read')
-rw-r--r--shell/hush_test/hush-read/read_SIGCHLD.right2
-rwxr-xr-xshell/hush_test/hush-read/read_SIGCHLD.tests4
2 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush_test/hush-read/read_SIGCHLD.right b/shell/hush_test/hush-read/read_SIGCHLD.right
new file mode 100644
index 000000000..b3dc7ab0c
--- /dev/null
+++ b/shell/hush_test/hush-read/read_SIGCHLD.right
@@ -0,0 +1,2 @@
+x='Ok'
+exitcode:0
diff --git a/shell/hush_test/hush-read/read_SIGCHLD.tests b/shell/hush_test/hush-read/read_SIGCHLD.tests
new file mode 100755
index 000000000..c5f673aff
--- /dev/null
+++ b/shell/hush_test/hush-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:$?"
+