diff options
author | markj <markj@FreeBSD.org> | 2017-09-15 00:34:59 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2017-09-15 00:34:59 +0000 |
commit | cea9397a9eb6e67e440469ee9372860cb87b6f66 (patch) | |
tree | 801188dc217e16aa27e803aa0bf55c275ccfc578 | |
parent | 88c9897e1da3b42a2b052c3d7527cd034c294126 (diff) | |
download | FreeBSD-src-cea9397a9eb6e67e440469ee9372860cb87b6f66.zip FreeBSD-src-cea9397a9eb6e67e440469ee9372860cb87b6f66.tar.gz |
MFC r323498:
Add a O_CLOEXEC use missed in r323166.
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c | 2 |
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 90b1d6b57..ab71a28 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c @@ -1111,7 +1111,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 |