Repair kill(2) on zombie processes.
authorjca <jca@openbsd.org>
Mon, 27 Jun 2016 19:55:02 +0000 (19:55 +0000)
committerjca <jca@openbsd.org>
Mon, 27 Jun 2016 19:55:02 +0000 (19:55 +0000)
commit0c7f085de1687defda6c2c7cf29696b80fe35751
tree4302309c6158f69a9e9029ba56ff56921555f75f
parent8eeefd1d801ce96cf1dc58cf19ff4af34ecad043
Repair kill(2) on zombie processes.

kill(2) is supposed to find zombie processes, this probably got broken
when the process reaper was introduced.  As a temporary(tm) workaround,
walk the list of zombie processes if we can't find the target pid in the
main process list.

Problem with zsh initially reported by Geoff Wozniak on misc@, analysis
done by naddy@.  ok kettenis@ tedu@
sys/kern/kern_proc.c
sys/kern/kern_sig.c
sys/sys/proc.h