WEBrick::Daemon (Class)

In: webrick/server.rb
Parent: Object

Methods

start  

Public Class methods

[Source]

# File webrick/server.rb, line 28
    def Daemon.start
      exit!(0) if fork
      Process::setsid
      exit!(0) if fork
      Dir::chdir("/")
      File::umask(0)
      [ STDIN, STDOUT, STDERR ].each{|io|
        io.reopen("/dev/null", "r+")
      }
      yield if block_given?
    end

[Validate]