Changes between Version 1 and Version 2 of Ticket #5713


Ignore:
Timestamp:
Apr 11, 2010, 8:31:09 PM (15 years ago)
Author:
andrewbachmann
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5713 – Description

    v1 v2  
    88Here's how to work around the bug:
    99
    10 1. wrap ALL calls to ::exit with a method that stores the exit value
    11 2. use atexit() to hook up an exit handler that first signals the main thread, and then suspends itself
    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
     101. wrap ALL calls to ::exit with
     11   a method that stores the exit value
     122. use atexit() to hook up an exit handler
     13   that first signals the main thread,
     14   and then suspends itself
     153. create a signal handler that kill_threads
     16   the other threads, and after they have
     17   all died, performs exit_thread()
     18   with the stored exit value
    1319}}}
    1420