This is the mail archive of the libc-alpha@sources.redhat.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]
Other format: [Raw text]

Re: Make exit thread-safe


On Thu, 24 Feb 2005, Sripathi Kodi wrote:

> I have noticed that exit() in stdlib/exit.c is not thread-safe. I have a 
> testcase that creates 10 threads, and they all call 'exit' almost 
> immediately.

Oops, that is not allowed. Is it not the case that a process can make
at most one call to exit or return from main. 

-- 
Meta-CVS: the working replacement for CVS that has been stable since
2002.  It versions the directory structure, symbolic links and execute
permissions. It figures out renaming on import. Plus it babysits the kids
and does light housekeeping! http://freshmeat.net/projects/mcvs


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