[distcc] re: distributed compiler cache

MartinPool mbp at samba.org
Thu Sep 12 12:04:00 GMT 2002


On 12 Sep 2002, Joerg Beyer <j.beyer at web.de> wrote:

> is that enough? It at least leave a small window between open() and
> the ioctl() for a race condition. I dont what to be academic but...

I think the lock_fd will suffice to serialize access to the file.
Since they don't do anything between opening the file and locking it
I'm not sure the window matters.  Can you step through the race you
think could cause a problem?

> Martin, in your private mail from 8/31/2002 you indicated that 
> using ccache by multiple users on the same machine at the same
> time with unhappy timing will lead to problems.  Do you think it is
> okay to use ccache as describe by a group of developers?

I think what I said was that I didn't know if it was a supported
configuration.  File permissions may or may not cause a problem.  I
haven't really looked in detail.

If ccache is called by distccd as I suggest, then everything will
happen in the same uid and it should be no different to a single user
running make -j, which works.

> ps: have you seen, that the current issue (october 2002) of the german magazine iX
> compares IncrediBuild, Teambuilder and distcc? 

No, I haven't.  That's excellent.  I'm not sure if I can get a copy of
it in Australia, though.  I wonder if somebody could post me one?

-- 
Martin 

<shawnm> why is the airport in Toronto called yyz?
<tpot_> xyzzy was too long



More information about the distcc mailing list