4646e82dcd
If a job has terminated but is still known, silently do nothing when using the kill builtin with the job specifier. Formerly, the shell called kill() with the process group ID that might have been reused.
9 lines
50 B
Plaintext
9 lines
50 B
Plaintext
# $FreeBSD$
|
|
|
|
: &
|
|
p1=$!
|
|
: &
|
|
p2=$!
|
|
wait $p2
|
|
kill %1
|