mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-26 07:58:52 +01:00
log when crash
This commit is contained in:
parent
1264cacdc1
commit
493d3c226f
1 changed files with 2 additions and 1 deletions
|
@ -386,6 +386,7 @@ cmd_crash( int socket, const char** args )
|
|||
"* %s -- fires an assert (debug case) or divides-by-zero",
|
||||
args[0] );
|
||||
} else {
|
||||
logf( XW_LOGERROR, "crashing..." );
|
||||
assert(0);
|
||||
int ii = 1;
|
||||
while ( ii > 0 ) --ii;
|
||||
|
@ -589,7 +590,7 @@ ctrl_thread_main( void* arg )
|
|||
void
|
||||
run_ctrl_thread( int ctrl_sock )
|
||||
{
|
||||
logf( XW_LOGINFO, "calling accept on socket %d\n", ctrl_sock );
|
||||
logf( XW_LOGINFO, "calling accept on socket %d", ctrl_sock );
|
||||
|
||||
sockaddr newaddr;
|
||||
socklen_t siz = sizeof(newaddr);
|
||||
|
|
Loading…
Add table
Reference in a new issue