From a4a573ce1827f6da6d6d1ccb6b529659b2ec3065 Mon Sep 17 00:00:00 2001 From: rmh Date: Fri, 31 Jan 2014 20:52:08 +0000 Subject: MFC r261138: Accept O_CLOEXEC in shm_open(). --- sys/kern/uipc_shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/uipc_shm.c') 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; -- cgit v1.1