signals (again)

bill bill.pursell at gmail.com
Fri Aug 12 02:26:47 EDT 2005


I found a good solution to this problem in Richard Steven's
_Network_Programming_.  It seems like everything shows up in Steven's
books!  Rather than pausing, you do a blocking read on a pipe.  You
only write to the pipe from within the signal handler.  However, this
brings up the better question:  why was 'pause' ever implemented?  No
matter what you do, the signal that you expect to wake you up may occur
immediately prior to the pause, and you'll miss it.   Starting that
question in a new thread.




More information about the Python-list mailing list