gochatai/pachi_py/pachi/network.c
/* Open the log connection on the given port, redirect stderr to it,
 * and keep reopening it if the connection is closed. */
Open the log connection on the given port, redirect stderr to it,
and keep reopening it if the connection is closed.
Open the log connection on the given port redirect stderr to it and keep reopening it if the connection is closed .
void
open_log_port(char *port)
{
	pthread_t thread;
	static struct port_info log_info = { .socket = -1 };
	log_info.port = port;
	open_log_connection(&log_info);
	pthread_create(&thread, NULL, log_thread, (void *)&log_info);
}
void open_log_port ( char * port ) { pthread_t thread ; static struct port_info log_info = { . socket = -1 } ; log_info . port = port ; open_log_connection ( & log_info ) ; pthread_create ( & thread , NULL , log_thread , ( void * ) & log_info ) ; }
Open the log connection on the given port, redirect stderr to it,
 and keep reopening it if the connection is closed.
Open the log connection on the given port redirect stderr to it and keep reopening it if the connection is closed .
/* From now on, log_info may only be modified by the single
	 * log_thread so static allocation is ok and there is no race. */