Re: dup3/O_CLOEXEC/F_DUPFD_CLOEXEC

2010-01-15 Thread Corinna Vinschen
On Jan 14 17:09, Corinna Vinschen wrote: On Jan 14 08:39, Pierre A. Humblet wrote: At 08:17 AM 1/14/2010, Corinna Vinschen wrote: On Jan 14 06:02, Eric Blake wrote: In a multi-threaded app, any fd that is opened only temporarily, such as the one in mq_open, should be opened with

Re: dup3/O_CLOEXEC/F_DUPFD_CLOEXEC

2010-01-15 Thread Pierre A. Humblet
- Original Message - From: Corinna Vinschen To: cygwin-patches Sent: Friday, January 15, 2010 10:42 | On Jan 14 17:09, Corinna Vinschen wrote: | On Jan 14 08:39, Pierre A. Humblet wrote: | | For the same reason we should also have SOCK_CLOEXEC, and | SOCK_NONBLOCK while we are

Re: dup3/O_CLOEXEC/F_DUPFD_CLOEXEC

2010-01-15 Thread Corinna Vinschen
On Jan 15 21:22, Corinna Vinschen wrote: On Jan 15 15:04, Pierre A. Humblet wrote: I see an issue with accept/accept4 and was going to ask you how to handle it. Before your changes in Cygwin the socket returned by accept had the same blocking (and async) property as the listening

Re: dup3/O_CLOEXEC/F_DUPFD_CLOEXEC

2010-01-15 Thread Pierre A. Humblet
- Original Message - From: Corinna Vinschen To: cygwin-patches Sent: Friday, January 15, 2010 15:34 | On Jan 15 21:22, Corinna Vinschen wrote: | On Jan 15 15:04, Pierre A. Humblet wrote: | I see an issue with accept/accept4 and was going to ask you how to | handle it. | |

Re: dup3/O_CLOEXEC/F_DUPFD_CLOEXEC

2010-01-15 Thread Corinna Vinschen
On Jan 15 16:33, Pierre A. Humblet wrote: From: Corinna Vinschen | Oh, hang on. I guess we should better stick to the BSD behaviour. | Any call to WSAAsyncSelect or WSAEventSelect clears Winsock's internal | network event queue. This could lead to connection errors. Given | that, the

Re: dup3/O_CLOEXEC/F_DUPFD_CLOEXEC

2010-01-15 Thread Pierre A. Humblet
- Original Message - From: Corinna Vinschen To: cygwin-patches Sent: Friday, January 15, 2010 17:03 | On Jan 15 16:33, Pierre A. Humblet wrote: | From: Corinna Vinschen | | Oh, hang on. I guess we should better stick to the BSD behaviour. | | Any call to WSAAsyncSelect or