Linux, fcntl, F_SETLEASE and signals

Jeff Epler jepler at unpythonic.net
Mon Jul 26 10:24:14 EDT 2004


What I don't see here is any handling of threads.

The SIGIO handler might be called at the same time as Python code is
running in another thread.  That means the call to getPending can see a
partially modified queue, or that the queue can be modified by a signal
while getPending is running.

Perhaps the code is written in some way that avoids these problems, but
I wasn't able to see how that would happen.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20040726/9cd3d44d/attachment.sig>


More information about the Python-list mailing list