in reply to Non blocking read on a filehandle
use Fcntl; my $flags; fcntl(FILEHANDLE, F_GETFL, $flags) || die $!; # Get the current flags +on the filehandle $flags |= O_NONBLOCK; # Add non-blocking to the flags fcntl(FILEHANDLE, F_SETFL, $flags) || die $!; # Set the flags on the f +ilehandle
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Non blocking read on a filehandle
by odie (Sexton) on Jan 30, 2001 at 19:55 UTC | |
|
Re^2: Non blocking read on a filehandle
by Anonymous Monk on Jan 08, 2009 at 16:08 UTC |