filled = aq_filled(); if(!tmr_running && filled <= 0) usec = -1; 
if (IS_STREAM_TRACE) filled = aq_filled(); 
static void doit(void){    memset(&control_fd_buffer, 0, sizeof(control_fd_buffer));    control_fd_buffer.fd = control_fd;    send_status(220, "TiMidity++ %s%s ready",    		(strcmp(timidity_version, "current")) ? "v" : "",    		timidity_version);/*    while(data_fd != -1 && control_fd != -1) */    while(control_fd != -1)    {	fd_set fds;	int n, maxfd;	if(data_fd == -1)	{	    if(do_control_command())		break;	}	else	{	    long usec;	    FD_ZERO(&fds);	    FD_SET(control_fd, &fds);	    FD_SET(data_fd, &fds);	    if(control_fd > data_fd)		maxfd = control_fd;	    else		maxfd = data_fd;	    if(data_fd != -1)	    {		    double wait_time;		    int32 filled;		    filled = aq_filled();		    if(!tmr_running && filled <= 0)			usec = -1;		    else		    {			wait_time = (double)filled / play_mode->rate			    - low_time_at;			if(wait_time <= 0)			    usec = 0;			else			    usec = (long)(wait_time * 1000000);		    }	    }	    else		usec = -1;	    if(usec >= 0)	    {		struct timeval timeout;		timeout.tv_sec = usec / 1000000;		timeout.tv_usec = usec % 1000000;		n = select(maxfd + 1, &fds, NULL, NULL, &timeout);	    }	    else		n = select(maxfd + 1, &fds, NULL, NULL, NULL);	    if(n < 0)	    {		perror("select");		break;	    }	    if(n == 0)	    {		do_timeout();		continue;	    }	    if(control_fd != -1 && FD_ISSET(control_fd, &fds))	    {		if(do_control_command())		{		    close(control_fd);		    control_fd = -1;		}	    }	    else if(data_fd != -1 && FD_ISSET(data_fd, &fds))	    {		if(do_sequencer())		{		    close(data_fd);		    data_fd = -1;		    send_status(403, "Data connection is closed");		}	    }	}    }    if(data_fd != -1)	stop_playing();}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/6caf34fe8547cecc56d280d73802b47a224f3a67/server_c.c/clean/interface/server_c.c