in reply to Plack: Shutdown handler?
Perhaps a flexible strategy would be to create a thread-safe queue of subroutine-references. When a signal is received, the signal-handler simply runs through this list, calling all of the routines on it in sequence. Any number of routines can be executed, and the list can be reliably maintained through the use of off-the-shelf CPAN.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Plack: Shutdown handler?
by jdrago999 (Pilgrim) on Aug 10, 2011 at 20:51 UTC | |
by locked_user sundialsvc4 (Abbot) on Aug 11, 2011 at 14:01 UTC |