diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-07-30 20:59:13 +0000 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-07-30 20:59:13 +0000 |
| commit | 94e2a62d31b6c1113ce0fd4409ed011298e65a77 (patch) | |
| tree | b9742bc049cbaec7fbd9298827c37889b0098b85 /usr | |
| parent | 5e84d9226735de686af50bb8ea064baed280c96d (diff) | |
| download | illumos-joyent-94e2a62d31b6c1113ce0fd4409ed011298e65a77.tar.gz | |
OS-3276 lx open O_CLOEXEC flag support is missing
Diffstat (limited to 'usr')
| -rw-r--r-- | usr/src/lib/brand/lx/lx_brand/common/open.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/lib/brand/lx/lx_brand/common/open.c b/usr/src/lib/brand/lx/lx_brand/common/open.c index e55d8fabe3..c511fc43b9 100644 --- a/usr/src/lib/brand/lx/lx_brand/common/open.c +++ b/usr/src/lib/brand/lx/lx_brand/common/open.c @@ -22,6 +22,7 @@ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright 2014 Joyent, Inc. All rights reserved. */ #include <sys/types.h> @@ -71,6 +72,8 @@ ltos_open_flags(uintptr_t p2) flags |= O_LARGEFILE; if (p2 & LX_O_NOFOLLOW) flags |= O_NOFOLLOW; + if (p2 & LX_O_CLOEXEC) + flags |= O_CLOEXEC; /* * Linux uses the LX_O_DIRECT flag to do raw, synchronous I/O to the |
