rolo 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/rolo +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f85132db78c65c8aee12ae6b85d0dfefaa852c40
|
|
4
|
+
data.tar.gz: 5cbef81992109f9073021178e75dae3c0d9ad8cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dab5ec68320c258de5d1a0026ca2eb50983014d858d6a481a872313221e77c3ca0f830323de003eee819eeb4b204d03ea5d3e4f8bab0b4752416b5916633306a
|
|
7
|
+
data.tar.gz: 0ee9e9a8ec8fb7285125ce603ef58f10a38166184824ea49e1705ffc8a8fc0050966fb3250009dfa8d58c29a2677d6e4fbd08f7b566dc2e1b098b4c538b3cd21
|
data/bin/rolo
CHANGED
|
@@ -67,7 +67,7 @@ class String
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
# Based on the original code taken from from [4]
|
|
70
|
-
def close_on_exec(
|
|
70
|
+
def close_on_exec(attr = true)
|
|
71
71
|
ObjectSpace.each_object(IO) do |io|
|
|
72
72
|
begin
|
|
73
73
|
if io.respond_to?(:close_on_exec?)
|
|
@@ -222,5 +222,11 @@ unless OPTIONS[:test]
|
|
|
222
222
|
e.to_s.die(1)
|
|
223
223
|
end
|
|
224
224
|
close_on_exec(false) unless OPTIONS[:no_bind]
|
|
225
|
+
ObjectSpace.each_object(IO) do |io|
|
|
226
|
+
begin
|
|
227
|
+
puts "#{io.inspect} => close/on/exec => #{io.close_on_exec?}"
|
|
228
|
+
rescue ::Exception => err
|
|
229
|
+
end unless [STDIN, STDOUT, STDERR].include?(io) or io.closed?
|
|
230
|
+
end
|
|
225
231
|
exec cmd
|
|
226
232
|
end
|