lib/daemons/daemonize.rb in daemons-1.1.3 vs lib/daemons/daemonize.rb in daemons-1.1.4
- old
+ new
@@ -114,11 +114,10 @@
def simulate(logfile_name = nil)
# NOTE: STDOUT and STDERR will not be redirected to the logfile, because in :ontop mode, we normally want to see the output
Dir.chdir "/" # Release old working directory
- File.umask 0000 # Insure sensible umask
# Make sure all file descriptors are closed
ObjectSpace.each_object(IO) do |io|
unless [STDIN, STDOUT, STDERR].include?(io)
begin
@@ -171,11 +170,10 @@
wr.close
$0 = app_name if app_name
Dir.chdir "/" # Release old working directory
- File.umask 0000 # Insure sensible umask
# Make sure all file descriptors are closed
ObjectSpace.each_object(IO) do |io|
unless [STDIN, STDOUT, STDERR].include?(io)
begin
@@ -221,10 +219,9 @@
#end
$0 = app_name if app_name
Dir.chdir "/" # Release old working directory
- File.umask 0000 # Insure sensible umask
# Make sure all file descriptors are closed
ObjectSpace.each_object(IO) do |io|
unless [STDIN, STDOUT, STDERR].include?(io)
begin