This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v2] Remove __ASSUME_O_CLOEXEC / O_CLOEXEC conditionals in sysdeps/unix/sysv/linux/


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]