cleanup
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user