This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: [Leif Johansson <leifj@matematik.su.se>] libc/1323: daemon hangs subsequent calls to pthread_create
- To: "GNU C. library Alpha Tester List" <libc-alpha at sourceware dot cygnus dot com>
- Subject: Re: [Leif Johansson <leifj@matematik.su.se>] libc/1323: daemon hangs subsequent calls to pthread_create
- From: Ulrich Drepper <drepper at cygnus dot com>
- Date: 10 Nov 1999 08:22:34 -0800
- Cc: Leif Johansson <leifj at matematik dot su dot se>
- References: <u8so2epwkw.fsf@gromit.rhein-neckar.de>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Andreas Jaeger <aj@suse.de> writes:
> >Description:
>
> If a process calls daemon(0,0) before calling pthread_create to create
> a thread, the call to pthread_create will not return. When I replaced
> the call to daemon in my code with the daemon which comes with libroken
> (from kth-krb, heimdal or arla), pthread_create works fine.
I will not spend a single second on this. daemon() is only there for
compatibility. It cannot be correct in all situations. People have
to write their own code to get reliable behaviour.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------