Bráulio Bhavamitra <[email protected]> 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 <[email protected]>
http://bogomips.org/unicorn-public/m/[email protected]
[1] http://unicorn.bogomips.org/examples/