>>>>> "DF" == Danny Faught <[EMAIL PROTECTED]> writes:


  DF> It looks like your signal handler just sets a flag when it's invoked,
  DF> which is the same way I do it.  This means that you depend on the event
  DF> loop to wake up and check the flag.  But what happens if a signal comes
  DF> in right before the poll/select call?  The signal won't wake it up.  

are you doing your own signal handling in perl? if so, you should switch
to event.pm. perl's signal handling is well known to be unsafe.

the way to handle that properly is to check for any pending signals
before you enter the select call (while blocking any from coming in) and
then checking after the select returns. this can only be done correctly
in C.

uri

-- 
Uri Guttman  ---------  [EMAIL PROTECTED]  ----------  http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info:     http://www.sysarch.com/perl/OOP_class.html

Reply via email to