public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: fix typo in accept on inet and local sockets
@ 2018-03-26 16:30 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-03-26 16:30 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cfe5d362fefe09a2601f9b3d5effc435da841de6

commit cfe5d362fefe09a2601f9b3d5effc435da841de6
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Mar 26 17:21:30 2018 +0200

    Cygwin: fix typo in accept on inet and local sockets
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler_socket_inet.cc  | 2 +-
 winsup/cygwin/fhandler_socket_local.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/fhandler_socket_inet.cc b/winsup/cygwin/fhandler_socket_inet.cc
index 75a15e6..db301f3 100644
--- a/winsup/cygwin/fhandler_socket_inet.cc
+++ b/winsup/cygwin/fhandler_socket_inet.cc
@@ -879,7 +879,7 @@ fhandler_socket_inet::accept4 (struct sockaddr *peer, int *len, int flags)
 				       build_fh_dev (dev ());
 	  if (sock && sock->set_socket_handle (res, get_addr_family (),
 					       get_socket_type (),
-					       get_socket_flags ()))
+					       get_socket_flags ()) == 0)
 	    {
 	      sock->async_io (false); /* set_socket_handle disables async. */
 	      /* No locking necessary at this point. */
diff --git a/winsup/cygwin/fhandler_socket_local.cc b/winsup/cygwin/fhandler_socket_local.cc
index 11f2c20..b037c0a 100644
--- a/winsup/cygwin/fhandler_socket_local.cc
+++ b/winsup/cygwin/fhandler_socket_local.cc
@@ -974,7 +974,7 @@ fhandler_socket_local::accept4 (struct sockaddr *peer, int *len, int flags)
 					build_fh_dev (dev ());
 	  if (sock && sock->set_socket_handle (res, get_addr_family (),
 					       get_socket_type (),
-					       get_socket_flags ()))
+					       get_socket_flags ()) == 0)
 	    {
 	      sock->async_io (false); /* set_socket_handle disables async. */
 	      sock->set_sun_path (get_sun_path ());


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-26 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-26 16:30 [newlib-cygwin] Cygwin: fix typo in accept on inet and local sockets Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).