diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash_test/ash-signals/signal5.right | 8 | ||||
-rwxr-xr-x | shell/ash_test/ash-signals/signal5.tests | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/shell/ash_test/ash-signals/signal5.right b/shell/ash_test/ash-signals/signal5.right index 35fcbd6..162f56b 100644 --- a/shell/ash_test/ash-signals/signal5.right +++ b/shell/ash_test/ash-signals/signal5.right @@ -1,11 +1,11 @@ -Waiting -sleeping for 1 sec +sleeping for 3 sec sleeping for 2 sec -1 sec passed, sending USR1 to parent +Waiting +2 sec passed, sending USR1 to parent USR1 received Wait exit code: 138 Waiting -2 sec passed, sending USR1 to parent +3 sec passed, sending USR1 to parent USR1 received Wait exit code: 138 Waiting diff --git a/shell/ash_test/ash-signals/signal5.tests b/shell/ash_test/ash-signals/signal5.tests index 5003180..371120e 100755 --- a/shell/ash_test/ash-signals/signal5.tests +++ b/shell/ash_test/ash-signals/signal5.tests @@ -5,8 +5,9 @@ stub() { echo "$1 sec passed, sending USR1 to parent" kill -USR1 $$ } +stub 3 & stub 2 & -stub 1 & +sleep 1 until { echo "Waiting"; wait; } do echo "Wait exit code: $?" done |