This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: dup3/O_CLOEXEC/F_DUPFD_CLOEXEC
On Jan 13 21:00, Eric Blake wrote:
> And while it looks
> like mq_open should not care about O_CLOEXEC, there may be some cleanup
> needed there.
It just occured to me that this an important hint. Message queue
descriptors are always closed-on-exec. Apparently I forgot to set the
close-on-exec flag on the underlying file descriptor. That's a good
time to do that via the O_CLOEXEC flag.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat