This commit is contained in:
Glenn Maynard
2004-10-27 19:52:51 +00:00
parent 303d0600d4
commit 48fda990cd
2 changed files with 7 additions and 5 deletions
@@ -182,12 +182,12 @@ static void parent_process( int to_child, const CrashData *crash )
}
/* 5. Write CHECKPOINTs. */
p = Checkpoints::GetLogs("\n");
size = strlen(p)+1;
static char buf[1024*32];
Checkpoints::GetLogs( buf, sizeof(buf), "\n" );
size = strlen(buf)+1;
if( !parent_write(to_child, &size, sizeof(size)) )
return;
if( !parent_write(to_child, p, size) )
if( !parent_write(to_child, buf, size) )
return;
/* 6. Write the crashed thread's name. */