in reply to Non-blocking pipe write
use Fcntl; my $flags; fcntl(SERVER_HANDLE, F_GETFL, $flags) || die $!; # Get the current fla +gs on the filehandle $flags |= O_NONBLOCK; # Add non-blocking to the flags fcntl(SERVER_HANDLE, F_SETFL, $flags) || die $!; # Set the flags on th +e filehandle
|
|---|