[distcc] Re: ERROR: sendfile failed: Connection reset by peer

Martin Pool mbp at samba.org
Fri May 23 02:54:05 GMT 2003


On 22 May 2003, Matthias Kn?fel <matk at go.cc> wrote:
> > Am I really the only one to see this problem?
> 
> nope..definitly not...I just switched from distcc-2.3 to 2.4.1 and got similar 
> errors...I use distcc-2.4.1 in the same way i've used 2.3...and 2.3 worked 
> perfectly within my configuration :(

I think this fixes it


diff -u -u -p -r1.3 -r1.4
--- netutil.c	19 May 2003 06:43:27 -0000	1.3
+++ netutil.c	23 May 2003 02:47:15 -0000	1.4
@@ -88,7 +88,7 @@ int dcc_sockaddr_to_ip(struct sockaddr *
                        int UNUSED(sa_len),
                        char **p_buf)
 {
-    *p_buf = inet_ntoa(((struct sockaddr_in *) sa)->sin_addr);
+    *p_buf = strdup(inet_ntoa(((struct sockaddr_in *) sa)->sin_addr));
     return 0;
 }
 #endif /* ndef ENABLE_RFC2553 */


-- 
Martin 

linux.conf.au 2004: Adelaide, Australia         http://lca2004.linux.org.au/



More information about the distcc mailing list