Changeset 6470 for trunk/licq

Show
Ignore:
Timestamp:
07/27/08 18:00:46 (4 months ago)
Author:
flynd
Message:

When we crash, disable signal handler so we can't get called again and overwrite the backtrace files. Hopefully this should fix so we no longer get traces with only one thread instead of all threads.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/sighandler.c

    r6440 r6470  
    9191    return; 
    9292  } 
     93 
     94  // When shutting down, calls to pthread_rdwr_destroy_np() may trigger another 
     95  // assert causing thish andler to be called again and backtrace files 
     96  // overwritten. 
     97  // Restore default signal handlers now, that way we won't get called again if 
     98  // this happens. 
     99  signal(SIGSEGV, SIG_DFL); 
     100  signal(SIGABRT, SIG_DFL); 
    93101 
    94102  /*