Re: SOCK_NONBLOCK not honored

2018-11-06 Thread Marco Atzeri
Am 05.11.2018 um 21:04 schrieb Corinna Vinschen: On Nov 1 20:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: Hi, Looks like CYGWIN defines but does not honor the SOCK_NONBLOCK flag when used with socket(2). (It also defines SOCK_CLOEXEC but I haven't checked whether it is honored

Re: SOCK_NONBLOCK not honored

2018-11-05 Thread Corinna Vinschen
On Nov 1 20:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: > Hi, > > Looks like CYGWIN defines but does not honor the SOCK_NONBLOCK flag when used > with socket(2). > > (It also defines SOCK_CLOEXEC but I haven't checked whether it is honored -- > full disclosure.) > > Consider th

SOCK_NONBLOCK not honored

2018-11-01 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
Hi, Looks like CYGWIN defines but does not honor the SOCK_NONBLOCK flag when used with socket(2). (It also defines SOCK_CLOEXEC but I haven't checked whether it is honored -- full disclosure.) Consider the following code: $ cat bug.c #include #include #include #include #include #include