aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libdtrace
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2017-09-12 14:38:10 +0000
committerMark Johnston <markj@FreeBSD.org>2017-09-12 14:38:10 +0000
commitb934b56429858aeea3b9b1b5aa6d3b902bd6c148 (patch)
tree08c7f0fd646167947bb5e69d15f30149a472c21c /cddl/contrib/opensolaris/lib/libdtrace
parentc7847a364a9c559e5b092d1ad34c578e931427d8 (diff)
downloadsrc-b934b56429858aeea3b9b1b5aa6d3b902bd6c148.tar.gz
src-b934b56429858aeea3b9b1b5aa6d3b902bd6c148.zip
Add a O_CLOEXEC use missed in r323166.
PR: 199810 Reported by: Jukka A. Ukkonen <jau789@gmail.com> MFC after: 3 days
Notes
Notes: svn path=/head/; revision=323498
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
index 92d3382296fc..c28ac38797ab 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
@@ -1109,7 +1109,7 @@ dt_vopen(int version, int flags, int *errp,
*/
if (err == ENOENT && modfind("dtraceall") < 0) {
kldload("dtraceall"); /* ignore the error */
- dtfd = open("/dev/dtrace/dtrace", O_RDWR);
+ dtfd = open("/dev/dtrace/dtrace", O_RDWR | O_CLOEXEC);
err = errno;
}
#endif