From 775534c1e172e572a6bac45a2275592c320f2130 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Wed, 20 Nov 2013 15:05:51 -0800 Subject: [PATCH] Always use our Process.daemon because it's not busted --- lib/puma/daemon_ext.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/puma/daemon_ext.rb b/lib/puma/daemon_ext.rb index eae6d3f0..bc64c131 100644 --- a/lib/puma/daemon_ext.rb +++ b/lib/puma/daemon_ext.rb @@ -1,4 +1,8 @@ module Process + + # This overrides the default version because it is broken if it + # exists. + def self.daemon(nochdir=false, noclose=false) exit if fork # Parent exits, child continues. @@ -16,5 +20,5 @@ module Process end 0 - end unless respond_to?(:daemon) + end end