Class: WEBrick::Daemon

Inherits:
Object show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/webrick-1.7.0/lib/webrick/server.rb

Overview

A generic module for daemonizing a process

Class Method Summary collapse

Class Method Details

.startObject

Performs the standard operations for daemonizing a process. Runs a block, if given.



45
46
47
48
49
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/webrick-1.7.0/lib/webrick/server.rb', line 45

def Daemon.start
  Process.daemon
  File.umask(0)
  yield if block_given?
end