From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B882420966; Fri, 24 Mar 2017 00:33:14 +0000 (UTC) Date: Fri, 24 Mar 2017 00:33:14 +0000 From: Eric Wong To: unicorn-public@bogomips.org Cc: Jeremy Evans Subject: [PATCH] doc: note after_worker_exit is also 5.3.0+ Message-ID: <20170324003314.GA23024@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: Followup-to: 650e01ab0b118803486b56f3ee59521d59042dae ("doc: add version annotations for new features") --- Oops, missed the 5.3.0.pre1 release; I managed to squash in the worker_exec change for that, though. lib/unicorn/configurator.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 5203537b..7fb9030f 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -172,6 +172,8 @@ def after_fork(*args, &block) # server.logger.error("worker process failure: #{status.inspect}") # end # end + # + # after_worker_exit is only available in unicorn 5.3.0+ def after_worker_exit(*args, &block) set_hook(:after_worker_exit, block_given? ? block : args[0], 3) end -- EW