in reply to need a reliable way to "sleep" while using signals

use POE. Set up a single session, assign your signals to states, put your code in the state code, and have one miscellaneous state that is the length of time you need, triggered by a timer. POE will manage the timer event to ensure it gets delivered at the proper time.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: need a reliable way to "sleep" while using signals