hush: fix exitcodes of killed processes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-01-04 11:37:09 +01:00
parent 4168fdd8e6
commit a4899efd03
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,5 @@
KILL
137:137
KILL
0:0
Done

View File

@ -0,0 +1,9 @@
exec 2>&1
$THIS_SH -c 'kill -9 $$'
echo 137:$?
! $THIS_SH -c 'kill -9 $$'
echo 0:$?
echo Done