[distcc] Problem with zeroconf daemonization

Lennart Poettering mzqvfgpp at 0pointer.de
Mon Jan 18 09:56:42 MST 2010


On Mon, 18.01.10 10:19, Benjamin R. Haskell (distcc at benizi.com) wrote:

> How universal is /proc/self/fd/?

It's Linux-only.
 
> > Might be an idea to simply copy this function:
> > 
> > http://git.0pointer.de/?p=libdaemon.git;a=blob;f=libdaemon/dfork.c;h=70fce862894ba16d66127d10547799aaa045fad4;hb=refs/heads/master#l485
> 
> Sure, modulo portability of /proc/self/fd/.  Or is the Avahi stuff the 
> limiting factor in portability anyway?  (no slight intended -- just 
> curious -- it would surprise me if it were)

Avahi works on the BSDs and Solaris too. It has even been ported to
MacOS.

I wouldn't bother with the other systems. Linux is the only one that
matters. The code I linked above is fast on Linux but still works on
non-Linux. That should be good enough.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the distcc mailing list