Deduplicate a line in the dok-release target
[privoxy.git] / jbsockets.c
index cdd7eb4..265771f 100644 (file)
@@ -1,4 +1,4 @@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.105 2011/07/17 13:34:36 fabiankeil Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.107 2011/07/17 13:36:48 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
@@ -313,6 +313,7 @@ static jb_socket rfc2553_connect_to(const char *host, int portnum, struct client
 
          if (errno != EINTR)
          {
+            socket_error = errno;
             close_socket(fd);
             connect_failed = 1;
             break;
@@ -1120,6 +1121,7 @@ int accept_connection(struct client_state * csp, jb_socket fds[])
    /*
     * Wait for a connection on any socket.
     * Return immediately if no socket is listening.
+    * XXX: Why not treat this as fatal error?
     */
    FD_ZERO(&selected_fds);
    max_selected_socket = 0;