diff options
author | John Sumsion <sumsionjg@familysearch.org> | 2010-11-05 14:19:12 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-12-09 12:24:54 -0600 |
commit | a0432d9371dd6a42234ec47a85ba7649517155a7 (patch) | |
tree | 841004166fa112a0701b80f42e28ef5d377dc0f7 | |
parent | b6aee31114f2171dfafbe4163d876221556c10fa (diff) | |
download | rack-a0432d9371dd6a42234ec47a85ba7649517155a7.tar.gz |
Removing the promiscous umask from the daemonize implementation.
This prevents me from putting a daemon process in a jail of some kind, and being able to control the umask from the environment before I launch it. There is no corollary to this in the Ruby 1.9's Process.daemon, see rb_daemon in ruby/process.c.
-rw-r--r-- | lib/rack/server.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rack/server.rb b/lib/rack/server.rb index 4dada92a..ab405564 100644 --- a/lib/rack/server.rb +++ b/lib/rack/server.rb @@ -265,7 +265,6 @@ module Rack Process.setsid exit if fork Dir.chdir "/" - ::File.umask 0000 STDIN.reopen "/dev/null" STDOUT.reopen "/dev/null", "a" STDERR.reopen "/dev/null", "a" |