Try out DocBook SGML to see if it's easier than Texinfo.
[rsync/rsync.git] / socket.c
index 843c19b..ccc79cf 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -182,6 +182,10 @@ int open_socket_out(char *host, int port, const char *bind_address,
                *cp++ = '\0';
                strcpy(portbuf, cp);
                h = buffer;
+               if (verbose >= 2) {
+                       rprintf(FINFO, "connection via http proxy %s port %s\n",
+                               h, portbuf);
+               }
        } else {
                snprintf(portbuf, sizeof(portbuf), "%d", port);
                h = host;
@@ -435,9 +439,10 @@ void start_accept_loop(int port, int (*fn)(int ))
                         * overloaded.  Sleep briefly before trying to
                         * accept again. */
                        sleep(2);
+               } else {
+                       /* Parent doesn't need this fd anymore. */
+                       close(fd);
                }
-
-               close(fd);
        }
 }