busybox/shell/ash_test/ash-read/read_SIGCHLD.tests
Denys Vlasenko f547041940 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>
2017-05-22 19:34:45 +02:00

5 lines
91 B
Plaintext
Executable File

x=BAD
{ sleep 0.4; echo Ok; } | { sleep 0.2 & read x; echo "x='$x'"; }
echo "exitcode:$?"