summaryrefslogtreecommitdiff
path: root/lib/webrick/server.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-10 00:13:58 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-10 00:13:58 +0000
commit071a678a156dde974d8e470b659c89cb02b07b3b (patch)
treea0c846f48a5107c97261a117e7624edabe6feddd /lib/webrick/server.rb
parent7e3ec1db0da950bf77bc3aa8d9b24b161cb60654 (diff)
* lib/webrick: Add Documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/server.rb')
-rw-r--r--lib/webrick/server.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index c4d23bd..30f4dc3 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -23,7 +23,15 @@ module WEBrick
end
end
+ ##
+ # A generic module for daemonizing a process
+
class Daemon
+
+ ##
+ # Performs the standard operations for daemonizing a process. Runs a
+ # block, if given.
+
def Daemon.start
exit!(0) if fork
Process::setsid