This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fwd: Bug#42343: libc6: gethostbyaddr() can hang indefinitely


Joel Klecker <jk@espy.org> 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   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]