smartcloud 0.0.122 → 0.0.123
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartcloud/grids/grid-runner/spawner.rb +13 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 719f170b7f8aea002ecde47e1eaa94310b281e24614f9eeb00b4d0aff945ba72
|
4
|
+
data.tar.gz: 31b35e7049f9a1bf519af6e781d07649357b00ddcf02ff94338785f42ef0b69b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4800daa3e64b92e115501c7e0df8237c7220b2c2d8e3dc08371391092f77269bb8c4b3fa9f7641cccd5c28c10d5c5e31a678be68d255f2b60b05463809d0f4ce
|
7
|
+
data.tar.gz: 90e9cf9d8ec5a942090de3f9fb53fd6480279f6b2630a04eaf28cf35dbc25d666235462a0b3bf4ad44863e46f79656080ecd778c24cd0a1d0cfac7c31c3599fa
|
@@ -1,6 +1,15 @@
|
|
1
1
|
require "pty"
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
begin
|
4
|
+
PTY.spawn("spawn-fcgi -p 9000 /usr/bin/fcgiwrap -f") do |stdout, stdin, pid|
|
5
|
+
begin
|
6
|
+
# Do stuff with the output here. Just printing to show it works
|
7
|
+
stdout.each { |line| print line }
|
8
|
+
rescue Errno::EIO
|
9
|
+
puts "Errno:EIO error, but this probably just means " +
|
10
|
+
"that the process has finished giving output"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
rescue PTY::ChildExited
|
14
|
+
puts "The child process exited!"
|
15
|
+
end
|