[Source]
# File lib/webrick/server.rb, line 28 28: def Daemon.start 29: exit!(0) if fork 30: Process::setsid 31: exit!(0) if fork 32: Dir::chdir("/") 33: File::umask(0) 34: STDIN.reopen("/dev/null") 35: STDOUT.reopen("/dev/null", "w") 36: STDERR.reopen("/dev/null", "w") 37: yield if block_given? 38: end
[Validate]