diff options
author | gibbs <gibbs@FreeBSD.org> | 2013-02-20 17:46:38 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2013-02-20 17:46:38 +0000 |
commit | 25887f42a7f1a07a4d9ecf17f7886847b5d7b97c (patch) | |
tree | 57f62a7984f0f82815cd9a38c20475e65dc58ebd /lib/libc | |
parent | cda69c96226e8d1ab1647199344302d2d5f4cf02 (diff) | |
download | FreeBSD-src-25887f42a7f1a07a4d9ecf17f7886847b5d7b97c.zip FreeBSD-src-25887f42a7f1a07a4d9ecf17f7886847b5d7b97c.tar.gz |
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
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions