This commit is contained in:
Glenn Maynard
2006-02-08 05:28:22 +00:00
parent 7b1f5c173b
commit 994cdd256b
+11 -11
View File
@@ -177,21 +177,21 @@ static void parent_process( int to_child, const CrashData *crash )
return; return;
} }
/* 5. Write CHECKPOINTs. */ /* 5. Write CHECKPOINTs. */
static char buf[1024*32]; static char buf[1024*32];
Checkpoints::GetLogs( buf, sizeof(buf), "\n" ); Checkpoints::GetLogs( buf, sizeof(buf), "\n" );
size = strlen( buf )+1; size = strlen( buf )+1;
if( !parent_write(to_child, &size, sizeof(size)) ) if( !parent_write(to_child, &size, sizeof(size)) )
return; return;
if( !parent_write(to_child, buf, size) ) if( !parent_write(to_child, buf, size) )
return; return;
/* 6. Write the crashed thread's name. */ /* 6. Write the crashed thread's name. */
p = RageThread::GetCurThreadName(); p = RageThread::GetCurThreadName();
size = strlen( p )+1; size = strlen( p )+1;
if( !parent_write(to_child, &size, sizeof(size)) ) if( !parent_write(to_child, &size, sizeof(size)) )
return; return;
if( !parent_write(to_child, p, size) ) if( !parent_write(to_child, p, size) )
return; return;
} }