fix hangs after crash

This commit is contained in:
Glenn Maynard
2004-04-07 07:40:02 +00:00
parent 837d2d03aa
commit f8d81ce6a9
@@ -366,6 +366,10 @@ static void RunCrashHandler( const CrashData *crash )
int status = 0;
waitpid( childpid, &status, 0 );
/* We need to resume threads before continuing, or we may deadlock on _exit(). */
RageThread::ResumeAllThreads();
if( WIFSIGNALED(status) )
safe_print( fileno(stderr), "Crash handler child exited with signal ", itoa(WTERMSIG(status)), "\n", NULL);
}