[distcc] [PATCH] timeout for gethostbyname and connect
Tim Potter
tpot at samba.org
Mon Oct 28 22:07:01 GMT 2002
On Sun, Oct 27, 2002 at 11:27:26PM +0100, Jonas Jensen wrote:
> > I wrote a patch similar to this for Samba that didn't end up being
> > applied. I used the __res_state structure described in
> > /usr/include/resolv.h which allows you to set various properties of
> > the resolver library, including timeout values.
> >
> > I thought I would suggest it in case people don't like using longjmp.
>
> Yeah, longjmp isn't pretty, but does __res_state work with other
> resolvers than glibc? (BSD, cygwin, etc.)
Nope! That is a shortcoming of this method. (-:
Tim.
More information about the distcc
mailing list