From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 34B401F7D5; Sat, 4 Oct 2014 02:25:59 +0000 (UTC) Date: Sat, 4 Oct 2014 02:25:59 +0000 From: Eric Wong To: =?utf-8?Q?Br=C3=A1ulio?= Bhavamitra Cc: unicorn-public Subject: Re: Master hooks needed Message-ID: <20141004022559.GA5511@dcvr.yhbt.net> References: <20141003122222.GA11445@dcvr.yhbt.net> <20141004012210.GA8134@dcvr.yhbt.net> <20141004015707.GA1951@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: BrĂ¡ulio Bhavamitra wrote: > Documentation is an excelent solution :) OK, pushed to the website[1] and unicorn.git as commit 3318b070c6513a3baa7ce7ac26f4835f46ccff1f examples: add run_once to before_fork hook example There may be code in a before_fork hook which should run only once, document an example using a guard variable since it may not be immediately obvious to all users. Inspired-by: BrĂ¡ulio Bhavamitra http://bogomips.org/unicorn-public/m/20141004015707.GA1951@dcvr.yhbt.net.html [1] http://unicorn.bogomips.org/examples/