mikehale-daemons 1.0.12.3 → 1.0.12.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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "daemons"
3
- s.version = "1.0.12.3"
3
+ s.version = "1.0.12.4"
4
4
  s.date = "2009-02-25"
5
5
  s.summary = "A toolkit to convert your script to a controllable daemon (with Chris Kline's fix)"
6
6
  s.email = "mikehale@gmail.com"
@@ -66,7 +66,7 @@ require 'timeout'
66
66
  #
67
67
  module Daemons
68
68
 
69
- VERSION = "1.0.12.3"
69
+ VERSION = "1.0.12.4"
70
70
 
71
71
  require 'daemons/daemonize'
72
72
 
@@ -246,7 +246,8 @@ module Daemonize
246
246
 
247
247
  if logfile_name
248
248
  begin
249
- STDOUT.reopen logfile_name, "a"
249
+ STDOUT.reopen logfile_name, "a"
250
+ File.chmod(0644, logfile_name)
250
251
  STDOUT.sync = true
251
252
  rescue ::Exception
252
253
  begin; STDOUT.reopen "/dev/null"; rescue ::Exception; end
@@ -92,6 +92,7 @@ module Daemons
92
92
 
93
93
  def pid=(p)
94
94
  File.open(filename, 'w') {|f|
95
+ f.chmod(0644)
95
96
  f.puts p #Process.pid
96
97
  }
97
98
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikehale-daemons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12.3
4
+ version: 1.0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hale