svn commit: r261329 - stable/10/sys/kern
Robert Millan
rmh at FreeBSD.org
Fri Jan 31 20:52:09 UTC 2014
Author: rmh
Date: Fri Jan 31 20:52:08 2014
New Revision: 261329
URL: http://svnweb.freebsd.org/changeset/base/261329
Log:
MFC r261138:
Accept O_CLOEXEC in shm_open().
Modified:
stable/10/sys/kern/uipc_shm.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/uipc_shm.c
==============================================================================
--- stable/10/sys/kern/uipc_shm.c Fri Jan 31 20:00:00 2014 (r261328)
+++ stable/10/sys/kern/uipc_shm.c Fri Jan 31 20:52:08 2014 (r261329)
@@ -704,7 +704,7 @@ sys_shm_open(struct thread *td, struct s
(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;
More information about the svn-src-stable
mailing list