]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r247048.
authorgibbs <gibbs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 13 Mar 2013 17:37:13 +0000 (17:37 +0000)
committergibbs <gibbs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 13 Mar 2013 17:37:13 +0000 (17:37 +0000)
commitf0d70fbec69bb86adc2252b8675022b093cab111
tree18ea47f77c8b20ec9a21a7e5dd5ead32e8bfbe8d
parent90e5147bfa8a9cffa0a008f874ff19816abe1726
MFC r247048.

Orphaned processes that are being traced are killed by the
kernel.  Properly restore, continue, and detach from processes
being DTraced when DTrace exits with an error so the program
being inspected is not terminated.

cddl/contrib/opensolaris/cmd/dtrace/dtrace.c:
In fatal(), the generic error handler, close the DTrace
handle as is done in the "probe/script" error handler
dfatal().  fatal() can be invoked after DTrace attaches
to processes (e.g. a script specified by command line
argument can't be found) and closing the handle will
release them.

Submitted by: Spectra Logic Corporation
Reviewed by: rpaulo, gnn

git-svn-id: svn://svn.freebsd.org/base/stable/9@248249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/cmd/dtrace/dtrace.c