From f5470419404d643070db99d058405b714695b817 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 22 May 2017 19:34:45 +0200 Subject: 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 --- shell/ash_test/ash-read/read_SIGCHLD.right | 2 ++ shell/ash_test/ash-read/read_SIGCHLD.tests | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 shell/ash_test/ash-read/read_SIGCHLD.right create mode 100755 shell/ash_test/ash-read/read_SIGCHLD.tests (limited to 'shell/ash_test') 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 000000000..b3dc7ab0c --- /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 000000000..c5f673aff --- /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:$?" + -- cgit v1.2.3