[Leif Johansson <leifj@matematik.su.se>] libc/1323: daemon hangs subsequent calls to pthread_create

Ulrich Drepper drepper@cygnus.com
Wed Nov 10 08:25:00 GMT 1999


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   `------------------------


More information about the Libc-alpha mailing list