[distcc] ncpus returns 0

Sean MacLennan seanm at seanm.ca
Thu Jun 12 02:20:55 GMT 2003

I compiled distcc on my StongARM based NetWinder running Linux. I then
ran distccd --daemon and watched my cpu go to 100%. It turns out that
the sysconf in ncpus returns 0 and distccd goes in to an endless loop
waiting for a child to die. The simple attached patch just sets the
ncpus to 1 if the sysconf returns 0.

   Sean MacLennan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: distcc-ncpus.patch
Type: application/octet-stream
Size: 380 bytes
Desc: not available
Url : http://lists.samba.org/archive/distcc/attachments/20030611/c5d7ffdd/distcc-ncpus.obj

More information about the distcc mailing list