in reply to Re^3: How do I get my IO::Socket::UNIX sockets to be non-blocking?
in thread How do I get my IO::Socket::UNIX sockets to be non-blocking?
That's really confused. How do you determine the difference between success and failure with
$rv = $io->block(); ## Find out the current setting if( !$rv ) { ## Is non-blocking enabled or did the call fail? } $rv = $io->blocking( 1 ); ## Turn on blocking (turn off non-blocking) if( !$rv ) { ## Was non-blocking previously enabled or did the call fail? } $rv = $io->blocking( 0 ); ## Turn off blocking if( !$rv ) { ## Did we succeed or did the call fail? }
What would or die $! be telling you?
A candidate for "Bad Interface Award of 1995, 1996, 1997, ... " :)
|
|---|