Date: Fri, 24 Jan 2014 21:05:07 +0000 (UTC) From: Robert Millan <rmh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261138 - head/sys/kern Message-ID: <201401242105.s0OL57Ph024746@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rmh Date: Fri Jan 24 21:05:07 2014 New Revision: 261138 URL: http://svnweb.freebsd.org/changeset/base/261138 Log: Accept O_CLOEXEC in shm_open(). Reviewed by: jilles, jhb MFC after: 1 week Modified: head/sys/kern/uipc_shm.c Modified: head/sys/kern/uipc_shm.c ============================================================================== --- head/sys/kern/uipc_shm.c Fri Jan 24 20:51:56 2014 (r261137) +++ head/sys/kern/uipc_shm.c Fri Jan 24 21:05:07 2014 (r261138) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401242105.s0OL57Ph024746>