Permalink
Browse files

sending stdout to /dev/null

  • Loading branch information...
1 parent 8acd212 commit 6c385a1f659ca423bc9f93d2cd60d4650be0a568 Colin Shield & Nitin Verma committed Mar 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 sunspot/lib/sunspot/server.rb
@@ -42,7 +42,7 @@ def start
pid = fork do
Process.setsid
STDIN.reopen('/dev/null')
-# STDOUT.reopen('/dev/null', 'a')
+ STDOUT.reopen('/dev/null', 'a')
STDERR.reopen(STDOUT)
run
end
@@ -68,7 +68,7 @@ def master_start
pid = fork do
Process.setsid
STDIN.reopen('/dev/null')
-# STDOUT.reopen('/dev/null', 'a')
+ STDOUT.reopen('/dev/null', 'a')
STDERR.reopen(STDOUT)
master_run
end

0 comments on commit 6c385a1

Please sign in to comment.