Changes between Initial Version and Version 1 of Ticket #5713
- Timestamp:
- Apr 11, 2010, 8:29:51 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5713 – Description
initial v1 5 5 Alternatively, assign the exit status and reason to both the main thread and calling thread, if that works. 6 6 7 {{{ 7 8 Here's how to work around the bug: 8 9 9 1. wrap allcalls to ::exit with a method that stores the exit value10 1. wrap ALL calls to ::exit with a method that stores the exit value 10 11 2. use atexit() to hook up an exit handler that first signals the main thread, and then suspends itself 11 12 3. create a signal handler that kill_threads the other threads, and after they have all died, performs exit_thread() with the stored exit value 13 }}} 12 14 13 15 <whew!>