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


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

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


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

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