It's your view. >From my point of view, the description of the manual appeared to be vague.
That was why I actually examined what value was returned by select() when connect() failed and errno was set to EINPROGRESS. I wrote that in the same email that you just quoted. Could you prove that zero is never returned by select() for that particular case? 2016-03-03 4:03 GMT+09:00 Ozaki Kiichi <[email protected]>: > > In the section "Non-blocking connect" of the OS X manual page tcp(4), > the description about possible return values of select() is not clearly > given for the case in question. > > I think that sentence does not negate the meaning of the return value of > select() (i.e. the number of ready descriptors, or -1 (error) ). > > > So I did check the return value and made sure that select() returned 0 > if it was called after connect() returned < 0 and set EINPROGRESS. > > > > > > Believe or not, that was why I included the condition ret == 0. > > > Thank you. > - Ozaki Kiichi > > -- > -- > You received this message from the "vim_dev" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
