MFC r261138:

Accept O_CLOEXEC in shm_open().
This commit is contained in:
rmh 2014-01-31 20:52:08 +00:00
parent 37071258d8
commit a4a573ce18

View File

@ -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;