Email List: Xaustin-group-lX
[All Lists]

whether ext() and atexit() are safe w.r.t each other

To: austin-group-l@xxxxxxxxxxxxx
Subject: whether ext() and atexit() are safe w.r.t each other
From: Anoop <acv@xxxxxxxxxxxxxxxxxx>
Date: Fri, 06 Jun 2008 16:18:33 +0530
A race is observed between atexit() and exit() in Linux.

Does these functions need to be safe with respect to each other?

Being more specific, if a thread is registering a handler using atexit() while
exit() is processing the already registered handlers in the main thread,
what is the expected behavior as per the standard?

Cheers,
- Anoop

Linux Technology Center,
IBM.

<Prev in Thread] Current Thread [Next in Thread>