From dcc55fb0215b0fd868586750f81ef60e2cd8ff52 Mon Sep 17 00:00:00 2001 From: Morton Jonuschat Date: Wed, 21 Aug 2013 07:25:25 +0200 Subject: [PATCH] Return success status to the invoking environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Daemonizing on JRuby returned an error status to the invoking environment due to exit! defaulting to a return status of „false“ in constrast to exit which defaults to „true“. --- lib/puma/single.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puma/single.rb b/lib/puma/single.rb index 41a725c0..9dd070ef 100644 --- a/lib/puma/single.rb +++ b/lib/puma/single.rb @@ -58,7 +58,7 @@ module Puma # Must use exit! so we don't unwind and run the ensures # that will be run by the new child (such as deleting the # pidfile) - exit! + exit!(true) end Signal.trap "SIGCHLD" do