Bugzilla – Attachment #50932: xinetd.deadlock.patch for bug #118878
void drain( int sd )
{
char buf[ 256 ] ; /* This size is arbitrarily chosen */
char cc ;
size_t cc ;
int old_val ;
/* Put in non-blocking mode so we don't hang. */
char buf[ DATAGRAM_SIZE ] ;
union xsockaddr lsin;
int cc ;
unsigned int sin_len = 0;
int descriptor = SERVER_FD( serp ) ;
const char *func = "dgram_echo";
static stream_status_e tcp_local_to_remote( channel_s *chp )
int rcc, wcc ;
size_t rcc, wcc ;
char *p ;
int left ;
const char *func = "tcp_local_to_remote" ;
static stream_status_e tcp_remote_to_local( channel_s *chp )
const char *func = "tcp_remote_to_local" ;
for ( ;; )
from_len = sizeof( pp->from ) ;
cc = recvfrom( INT_REMOTE( ip ), pp->data, pp->size,
static status_e udp_local_to_remote( channel_s *chp )
char buf[ MAX_DATAGRAM_SIZE ] ;
const char *func = "udp_local_to_remote" ;