[v2] Remove __ASSUME_O_CLOEXEC / O_CLOEXEC conditionals in sysdeps/unix/sysv/linux/
Roland McGrath
roland@hack.frob.com
Wed Jun 25 18:46:00 GMT 2014
Currently I'm inclined against requiring O_CLOEXEC for all configurations.
> @@ -164,9 +157,7 @@ shm_open (const char *name, int oflag, mode_t mode)
> __mempcpy (__mempcpy (fname, mountpoint.dir, mountpoint.dirlen),
> name, namelen + 1);
>
> -#ifdef O_CLOEXEC
> oflag |= O_CLOEXEC;
> -#endif
Just move | O_CLOEXEC into the open call along with | O_NOFOLLOW.
Otherwise looks fine.
Thanks,
Roland
More information about the Libc-alpha
mailing list