summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-10-06 12:05:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-10-06 12:05:46 +0000
commit9713551e8a72a33b4b818ee09aad78c118ab25c2 (patch)
tree6971ead0ff4bbe166351ff96f67fd2e208a8a242
parent6dcb7226ab17fb648f397fe7256024adf9017eff (diff)
downloaddrakx-9713551e8a72a33b4b818ee09aad78c118ab25c2.tar
drakx-9713551e8a72a33b4b818ee09aad78c118ab25c2.tar.gz
drakx-9713551e8a72a33b4b818ee09aad78c118ab25c2.tar.bz2
drakx-9713551e8a72a33b4b818ee09aad78c118ab25c2.tar.xz
drakx-9713551e8a72a33b4b818ee09aad78c118ab25c2.zip
add common::nonblock()
-rw-r--r--perl-install/common.pm4
1 files changed, 4 insertions, 0 deletions
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;