Changes between Initial Version and Version 1 of Ticket #5713


Ignore:
Timestamp:
Apr 11, 2010, 8:29:51 PM (12 years ago)
Author:
andrewbachmann
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5713 – Description

    initial v1  
    55Alternatively, assign the exit status and reason to both the main thread and calling thread, if that works.
    66
     7{{{
    78Here's how to work around the bug:
    89
    9 1. wrap all calls to ::exit with a method that stores the exit value
     101. wrap ALL calls to ::exit with a method that stores the exit value
    10112. use atexit() to hook up an exit handler that first signals the main thread, and then suspends itself
    11123. 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}}}
    1214
    1315<whew!>