[distcc] RE: distcc solaris problem

Lavelle, Neil nlavelle at orchestream.com
Mon Sep 30 17:18:00 GMT 2002


Hi Martin,

Thanks for getting back to me, your solution works a treat ! much
appreciated.

Cheers

Neil

> -----Original Message-----
> From: Martin Pool [mailto:mbp at samba.org]
> Sent: 30 September 2002 05:31
> To: Lavelle, Neil
> Cc: distcc at lists.samba.org
> Subject: Re: distcc solaris problem
> 
> 
> On 24 Sep 2002, "Lavelle, Neil" <nlavelle at orchestream.com> wrote:
> 
> >    Any idea what might be happening ? .. I'm going to have 
> a look into it in
> >    more detail but I figured you'd know the code and how 
> it's supposed to
> >    behave a whole lot better !
> 
> Hi, Neil,
> 
> Kevin Bailey pointed out that it is because of a difference in the
> wait4() interface between Solaris and Linux/BSD.  If you apply the
> attached patch it should be OK.  (This will be fixed in 0.12.)  If
> not, please let me know -- and thanks for including a trace, that
> helps a lot.
> 
> -- 
> Martin 
> 
> 
> 
> --- serve.c.~1.65.~	2002-09-19 14:31:18.000000000 +1000
> +++ serve.c	2002-09-30 14:16:48.000000000 +1000
> @@ -446,7 +446,7 @@ int dcc_accept_job(int fd)
>      /* FIXME: wait4() on Solaris can't take pid=-1; we possibly need
>       * to use pid=0, but that will only catch things in the current
>       * process group.  (Shrug, it's a doomed platform anyhow.) */
> -    wait_ret = dcc_collect_child(-1, &status, &u_us, &s_us);
> +    wait_ret = dcc_collect_child(0, &status, &u_us, &s_us);
>      if (wait_ret) {
>          rs_log_error("wait failed; forcing failure status");
>          status = EXIT_DISTCC_FAILED << 8;         /* random 
> failure */
> 


--
This communication contains confidential information intended solely for the use of the individual/s and/or entity or entities to whom it was intended to be addressed.  If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited.  If you have received this communication in error, please contact the sender immediately, delete this communication from your system, and do not disclose its contents to any third party, or use its contents.  Any opinions expressed are solely those of the author and do not necessarily represent those of Orchestream Ltd or its group of companies unless otherwise specifically stated.




More information about the distcc mailing list