7696168706
When killing a %job started without job control, kill all processes in it. As with process groups and zombies, if any process in the job can be killed or has already terminated, the command is successful. This also fixes occasional failures of the builtins/kill1.0 test.
8 lines
105 B
Plaintext
8 lines
105 B
Plaintext
# $FreeBSD$
|
|
|
|
sleep 1 | sleep 1 &
|
|
kill %+
|
|
wait "$!"
|
|
r=$?
|
|
[ "$r" -gt 128 ] && [ "$(kill -l "$r")" = TERM ]
|