summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;