lib/vrowser/http_daemon.rb in vrowser-0.0.9 vs lib/vrowser/http_daemon.rb in vrowser-0.1.0
- old
+ new
@@ -34,9 +34,13 @@
end
regist_stop
@server.start
end
+ def daemonize!
+ Process.daemon
+ end
+
def stop
@server.shutdown if @server
Thread.kill(@th) if @th
end