This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Make exit thread-safe
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- To: Sripathi Kodi <sripathik at in dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 24 Feb 2005 07:30:11 -0800 (PST)
- Subject: 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