in reply to Handling DB operations in signal handler
It's generally not a good idea to run long, complex stuff from a signal handler (even with Perl's "safe signals"). Best is to just set some flag in the signal handler that you check and act upon in the main loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Handling DB operations in signal handler
by ajeet@perl (Acolyte) on Apr 10, 2010 at 10:05 UTC |