method

start

v1_8_7_330 - Show latest stable - Class: WEBrick::Daemon
start()
public

No documentation available.

# File lib/webrick/server.rb, line 28
    def Daemon.start
      exit!(0) if fork
      Process::setsid
      exit!(0) if fork
      Dir::chdir("/")
      File::umask(0)
      STDIN.reopen("/dev/null")
      STDOUT.reopen("/dev/null", "w")
      STDERR.reopen("/dev/null", "w")
      yield if block_given?
    end