# File lib_core/rucy/server.rb, line 23 def self.daemon catch(:START_DAEMON) do unless (fork) then Process.setsid unless (fork) then #Dir.chdir('/') STDIN.reopen('/dev/null', 'r') STDOUT.reopen('/dev/null', 'w') STDERR.reopen('/dev/null', 'w') throw :START_DAEMON end end exit! end end