From 9713551e8a72a33b4b818ee09aad78c118ab25c2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 6 Oct 2003 12:05:46 +0000 Subject: add common::nonblock() --- perl-install/common.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perl-install/common.pm') diff --git a/perl-install/common.pm b/perl-install/common.pm index a28c3727c..a808faefb 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -100,6 +100,10 @@ sub setVirtual { unpack "S", $vt; } +sub nonblock { + my ($F) = @_; + fcntl($F, c::F_SETFL(), fcntl($F, c::F_GETFL(), 0) | c::O_NONBLOCK()); +} sub removeXiBSuffix { local $_ = shift; -- cgit v1.2.1