diff --git a/lib/daemons/daemonize.rb b/lib/daemons/daemonize.rb index 197a5a6..1c4cf61 100644 --- a/lib/daemons/daemonize.rb +++ b/lib/daemons/daemonize.rb @@ -116,7 +116,6 @@ 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| @@ -173,7 +172,6 @@ def call_as_daemon(block, logfile_name = nil, app_name = nil) $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| @@ -216,7 +214,6 @@ def daemonize(logfile_name = nil, app_name = nil) $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|