dyoder-hive 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. data/lib/hive/worker.rb +5 -5
  2. metadata +2 -2
@@ -36,13 +36,13 @@ module Hive
36
36
  return pid if pid
37
37
  begin
38
38
  # from here on in, we're in the daemon
39
- start_logger ; logger.info "#{self.class} starting ..."
39
+ start_logger ; logger.info "#{self.class} starting ..."
40
40
  start_debugger if options[:debug] # unless Kernel.engine == 'jruby'
41
41
  # various ways to talk to a worker
42
42
  set_traps ; start_console ; start_drb
43
- start_tasks.join
43
+ start_tasks.join
44
44
  rescue Exception => e
45
- logger.error e.to_s
45
+ logger.error e.to_s rescue nil
46
46
  end
47
47
  end
48
48
 
@@ -57,8 +57,8 @@ module Hive
57
57
  def daemonize
58
58
  pwd = Dir.pwd ; pid = fork ; return pid if pid ; Dir.chdir( pwd )
59
59
  # Make sure all file descriptors are closed
60
- ObjectSpace.each_object(IO) do |io|
61
- unless [STDIN, STDOUT, STDERR].include?(io)
60
+ ObjectSpace.each_object( IO ) do | io |
61
+ unless [ STDIN, STDOUT, STDERR ].include?(io)
62
62
  begin
63
63
  unless io.closed?
64
64
  io.close
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyoder-hive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Yoder
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-11 00:00:00 -07:00
12
+ date: 2009-08-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency