Linux, fcntl, F_SETLEASE and signals

Jeff Epler jepler at unpythonic.net
Wed Jul 21 12:49:58 EDT 2004


I don't know of a way to do this without an extension module.  It should
be possible to do it with an extension module, though.  The module 
would use sigaction() to install its own handler for SIGIO, and stash
the desired fields from the siginfo_t parameter somewhere.  Use
Py_AddPendingCall() (undocumented? but with a public API name) to run a
callback with the stashed information in the void* arg, which calls back
into Python or does whatever else you need.

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/20040721/add9b70c/attachment.sig>


More information about the Python-list mailing list