aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/whois
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2013-12-18 01:41:52 +0000
committerMark Johnston <markj@FreeBSD.org>2013-12-18 01:41:52 +0000
commit7159310fa68979b45de779f0e49522d3262eb0a4 (patch)
tree6e1d82eccf41beda77ba33807668e571167cca32 /usr.bin/whois
parentfdc3c84b5be61b1aeadf02ba30c4ef632f107205 (diff)
downloadsrc-7159310fa68979b45de779f0e49522d3262eb0a4.tar.gz
src-7159310fa68979b45de779f0e49522d3262eb0a4.zip
The fasttrap fork handler is responsible for removing tracepoints in the
child process that were inherited from its parent. However, this should not be done in the case of a vfork, since the fork handler ends up removing the tracepoints from the shared vm space, and userland DTrace probes in the parent will no longer fire as a result. Now the child of a vfork may trigger userland DTrace probes enabled in its parent, so modify the fasttrap probe handler to handle this case and handle the child process in the same way that it would handle the traced process. In particular, if once traces function foo() in a process that vforks, and the child calls foo(), fasttrap will treat this call as having come from the parent. This is the behaviour of the upstream code. While here, add #ifdef guards to some code that isn't present upstream. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=259535
Diffstat (limited to 'usr.bin/whois')
0 files changed, 0 insertions, 0 deletions