Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libevent/dist undo previous, breaks differently...



details:   https://anonhg.NetBSD.org/src/rev/24c4d2672ca8
branches:  trunk
changeset: 786061:24c4d2672ca8
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 12 20:02:00 2013 +0000

description:
undo previous, breaks differently when testing for EINPROGRESS.

diffstat:

 external/bsd/libevent/dist/evutil.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (34 lines):

diff -r 1c39cbae0729 -r 24c4d2672ca8 external/bsd/libevent/dist/evutil.c
--- a/external/bsd/libevent/dist/evutil.c       Fri Apr 12 20:00:21 2013 +0000
+++ b/external/bsd/libevent/dist/evutil.c       Fri Apr 12 20:02:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: evutil.c,v 1.3 2013/04/12 19:41:45 christos Exp $      */
+/*     $NetBSD: evutil.c,v 1.4 2013/04/12 20:02:00 christos Exp $      */
 /*
  * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
  *
@@ -27,7 +27,7 @@
 
 #include "event2/event-config.h"
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: evutil.c,v 1.3 2013/04/12 19:41:45 christos Exp $");
+__RCSID("$NetBSD: evutil.c,v 1.4 2013/04/12 20:02:00 christos Exp $");
 
 #define _GNU_SOURCE
 
@@ -483,15 +483,6 @@
 
        if (connect(*fd_ptr, sa, socklen) < 0) {
                int e = evutil_socket_geterror(*fd_ptr);
-#ifdef __NetBSD__
-               if (e == EINPROGRESS) {
-                       socklen_t l = sizeof(e);
-                       l = sizeof(e);
-                       if (getsockopt(*fd_ptr, SOL_SOCKET, SO_ERROR,
-                           (void*)&e, &l) == -1)
-                               abort();
-               }
-#endif
                if (EVUTIL_ERR_CONNECT_RETRIABLE(e))
                        return 0;
                if (EVUTIL_ERR_CONNECT_REFUSED(e))



Home | Main Index | Thread Index | Old Index