smartcloud 0.0.122 → 0.0.123

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b34df6ade10df6f9f50f8ed55e79375f08047ff61c676d01aa70ccb89eaa129a
4
- data.tar.gz: 8b2720480d4b8bd5f587f23e9b7eaa72f665961c7ff50229b0b4fcd66ff3633f
3
+ metadata.gz: 719f170b7f8aea002ecde47e1eaa94310b281e24614f9eeb00b4d0aff945ba72
4
+ data.tar.gz: 31b35e7049f9a1bf519af6e781d07649357b00ddcf02ff94338785f42ef0b69b
5
5
  SHA512:
6
- metadata.gz: 767c2973c428e05b29a4dd81ab64bfc6e9ea64c1a4404da4fc20c6de2ccca73cc636354625ce8d9756f29f1bac414f463e4e9a5d825dd7bc0b183cf6aafbbb37
7
- data.tar.gz: d68a170b52e24bc14cd06c8b919b82d577a5302d147841f655b9af7cd20ca48e275bc8239f144036e58fc1b95dec920e8c6ce522cef49d37d8a70c75a52949ba
6
+ metadata.gz: 4800daa3e64b92e115501c7e0df8237c7220b2c2d8e3dc08371391092f77269bb8c4b3fa9f7641cccd5c28c10d5c5e31a678be68d255f2b60b05463809d0f4ce
7
+ data.tar.gz: 90e9cf9d8ec5a942090de3f9fb53fd6480279f6b2630a04eaf28cf35dbc25d666235462a0b3bf4ad44863e46f79656080ecd778c24cd0a1d0cfac7c31c3599fa
@@ -1,6 +1,15 @@
1
1
  require "pty"
2
2
 
3
- PTY.spawn("spawn-fcgi -p 9000 /usr/bin/fcgiwrap -f") do |stdout, stdin, pid|
4
- stdout.each { |line| print line }
5
- Process.wait(pid)
6
- end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.122
4
+ version: 0.0.123
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard