]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 326953:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 24 Jan 2018 00:32:02 +0000 (00:32 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 24 Jan 2018 00:32:02 +0000 (00:32 +0000)
commit944cfea6cfa69320e103ed81a8c32c01baa9c1d7
tree8a5f63f0d057dca3b5809e7ea23973a4b3c130b4
parent1f8d5e0825e224bd1e2719064e29e4c6986e9a44
MFC 326953:
Catch up to r325719 which makes the kern.proc.pid sysctl "work" for zombies.

Some of the ptrace tests need to wait for a child process to become a
zombie before preceding.  The parent process polls the child process
via the kern.proc.pid sysctl to wait for it to become a zombie.
Previously the code polled until the sysctl failed with ESRCH.  Now it
will poll until either the sysctl fails with ESRCH (for compatiblity
with older kernels) or returns a kinfo_proc structure with the ki_stat
field set to SZOMB.

git-svn-id: svn://svn.freebsd.org/base/stable/10@328309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tests/sys/kern/ptrace_test.c