]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 303001: Add PTRACE_VFORK to trace vfork events.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 19 Aug 2016 20:17:57 +0000 (20:17 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 19 Aug 2016 20:17:57 +0000 (20:17 +0000)
commit6c33d5df3303711c994512b1088d84576b4c062d
treee1149353458936ff42f8fab9543a52b808dffd5b
parente6bf9de8d92bef614239f25f860e7d7d755adb67
MFC 303001: Add PTRACE_VFORK to trace vfork events.

First, PL_FLAG_FORKED events now also set a PL_FLAG_VFORKED flag when
the new child was created via vfork() rather than fork().  Second, a
new PL_FLAG_VFORK_DONE event can now be enabled via the PTRACE_VFORK
event mask.  This new stop is reported after the vfork parent resumes
due to the child calling exit or exec.  Debuggers can use this stop to
reinsert breakpoints in the vfork parent process before it resumes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@304499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/ptrace.2
sys/kern/kern_fork.c
sys/kern/subr_syscall.c
sys/kern/sys_process.c
sys/sys/proc.h
sys/sys/ptrace.h
tests/sys/kern/ptrace_test.c