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.

  • Comment on Re: Handling DB operations in signal handler

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
    Thank You almut.... yeah, doing long operation was the problem...