summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmh <rmh@FreeBSD.org>2014-01-24 21:05:07 +0000
committerrmh <rmh@FreeBSD.org>2014-01-24 21:05:07 +0000
commita40185286e7ecad02f1c7cc9dd8423cfc1df40b8 (patch)
tree121936d240cffee92cf89498b5754d6cded5a9b2
parent2370ce3666870459363d2f7a5f7b0fe975502173 (diff)
downloadFreeBSD-src-a40185286e7ecad02f1c7cc9dd8423cfc1df40b8.zip
FreeBSD-src-a40185286e7ecad02f1c7cc9dd8423cfc1df40b8.tar.gz
Accept O_CLOEXEC in shm_open().
Reviewed by: jilles, jhb MFC after: 1 week
-rw-r--r--sys/kern/uipc_shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 372b583..cf00ff4 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -704,7 +704,7 @@ sys_shm_open(struct thread *td, struct shm_open_args *uap)
(uap->flags & O_ACCMODE) != O_RDWR)
return (EINVAL);
- if ((uap->flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC)) != 0)
+ if ((uap->flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0)
return (EINVAL);
fdp = td->td_proc->p_fd;
OpenPOWER on IntegriCloud