parent
b1847063b1
commit
9a060649ec
@ -1 +1 @@
|
|||||||
facter-1.5.5.tar.gz
|
facter-1.5.7.tar.gz
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
From 43da65cd2af00d8e7162461835b039bc5ee7d5c8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Bernhard Furtmueller <furti@1012surf.net>
|
|
||||||
Date: Tue, 23 Jun 2009 23:18:01 +0200
|
|
||||||
Subject: [PATCH] Fixed #2355 read hang on /proc/xen/capabilties on RHEL 4.7
|
|
||||||
Signed-off-by: Bernhard Furtmueller <furti@1012surf.net>
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/facter/virtual.rb | 8 +++++---
|
|
||||||
1 files changed, 5 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
|
|
||||||
index 72bfe51..8c11b40 100644
|
|
||||||
--- a/lib/facter/virtual.rb
|
|
||||||
+++ b/lib/facter/virtual.rb
|
|
||||||
@@ -41,9 +41,11 @@ Facter.add("virtual") do
|
|
||||||
end
|
|
||||||
|
|
||||||
if FileTest.exists?("/proc/xen/capabilities")
|
|
||||||
- txt = File.read("/proc/xen/capabilities")
|
|
||||||
- if txt =~ /control_d/i
|
|
||||||
- result = "xen0"
|
|
||||||
+ Thread::exclusive do
|
|
||||||
+ txt = File.read("/proc/xen/capabilities")
|
|
||||||
+ if txt =~ /control_d/i
|
|
||||||
+ result = "xen0"
|
|
||||||
+ end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
--
|
|
||||||
1.6.0.4
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
From 4056c6474460535793f5d0c38521306d973571ca Mon Sep 17 00:00:00 2001
|
||||||
|
From: Bernhard Furtmueller <furti@1012surf.net>
|
||||||
|
Date: Fri, 11 Sep 2009 01:09:22 -0400
|
||||||
|
Subject: [PATCH/facter] Fixed #2355 read hang on /proc/xen/capabilties on RHEL 4.7
|
||||||
|
|
||||||
|
---
|
||||||
|
lib/facter/virtual.rb | 4 ++--
|
||||||
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
|
||||||
|
index 78413a9..6f3f5a2 100644
|
||||||
|
--- a/lib/facter/virtual.rb
|
||||||
|
+++ b/lib/facter/virtual.rb
|
||||||
|
@@ -25,9 +25,9 @@ Facter.add("virtual") do
|
||||||
|
if FileTest.exists?("/sys/bus/xen")
|
||||||
|
result = "xenu"
|
||||||
|
end
|
||||||
|
-
|
||||||
|
+
|
||||||
|
if FileTest.exists?("/proc/xen/capabilities")
|
||||||
|
- txt = File.read("/proc/xen/capabilities")
|
||||||
|
+ txt = Facter::Util::Resolution.exec("cat /proc/xen/capabilities")
|
||||||
|
if txt =~ /control_d/i
|
||||||
|
result = "xen0"
|
||||||
|
end
|
||||||
|
--
|
||||||
|
1.6.4.2
|
||||||
|
|
Loading…
Reference in new issue