summaryrefslogtreecommitdiff
path: root/lib/webrick/server.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-27 09:05:48 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-27 09:05:48 +0000
commit2ded8d0698667692ce5d9ca2bbc6108ed1125235 (patch)
tree94bda1780c64add126429c429f5f165e233e2af8 /lib/webrick/server.rb
parenta20929cb723088b14e7498ced867a93e32072885 (diff)
* lib/webrick/server.rb: use IO::NULL instead of '/dev/null'
* test/ruby/test_string.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/server.rb')
-rw-r--r--lib/webrick/server.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index 1d87cda..73395a4 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -48,9 +48,9 @@ module WEBrick
exit!(0) if fork
Dir::chdir("/")
File::umask(0)
- STDIN.reopen("/dev/null")
- STDOUT.reopen("/dev/null", "w")
- STDERR.reopen("/dev/null", "w")
+ STDIN.reopen(IO::NULL)
+ STDOUT.reopen(IO::NULL, "w")
+ STDERR.reopen(IO::NULL, "w")
yield if block_given?
end
end