Skip to content

Commit

Permalink
sending stdout to /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Shield & Nitin Verma committed Mar 4, 2011
1 parent 8acd212 commit 6c385a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sunspot/lib/sunspot/server.rb
Expand Up @@ -42,7 +42,7 @@ def start
pid = fork do pid = fork do
Process.setsid Process.setsid
STDIN.reopen('/dev/null') STDIN.reopen('/dev/null')
# STDOUT.reopen('/dev/null', 'a') STDOUT.reopen('/dev/null', 'a')
STDERR.reopen(STDOUT) STDERR.reopen(STDOUT)
run run
end end
Expand All @@ -68,7 +68,7 @@ def master_start
pid = fork do pid = fork do
Process.setsid Process.setsid
STDIN.reopen('/dev/null') STDIN.reopen('/dev/null')
# STDOUT.reopen('/dev/null', 'a') STDOUT.reopen('/dev/null', 'a')
STDERR.reopen(STDOUT) STDERR.reopen(STDOUT)
master_run master_run
end end
Expand Down

0 comments on commit 6c385a1

Please sign in to comment.