From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Drepper To: Joel Klecker Cc: libc-hacker@sourceware.cygnus.com, 42343-forwarded@bugs.debian.org Subject: Re: Fwd: Bug#42343: libc6: gethostbyaddr() can hang indefinitely Date: Fri, 06 Aug 1999 20:17:00 -0000 Message-id: References: X-SW-Source: 1999-08/msg00013.html Joel Klecker writes: > The resolver routines that glibc uses use select() internally. If the > select() gets interrupted, it gets restarted, but the timeout value > is re-initialized. If you have a timer in your program that uses > signal(SIGALRM)/alarm() and it runs more often than the select timeout, > gethostbyaddr() for example will hang forever if a DNS packet gets lost. I've fixed this hopefully now for 2.1.2. -- ---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Cygnus Solutions `--' drepper at cygnus.com `------------------------