mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 04:20:28 +08:00
89ef52df63
poll has code that checks whether a socket descriptor has a failed connect or whether shutdown has been called. This previously worked only for wsock sockets. Tweak the code so that it applies to all sockets. To help with this, add a virtual saw_shutdown_read method to the fhandler_socket class, and define a version of it for AF_UNIX sockets. A version for wsock sockets already existed. Untested.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cygwin documentation is available on the net at https://cygwin.com You might especially be interested in https://cygwin.com/faq/faq.html#faq.programming.building-cygwin