Linux, fcntl, F_SETLEASE and signals

Chris Green cmg at
Mon Jul 26 16:13:01 CEST 2004

Jeff Epler <jepler at> writes:

>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.

What I ended up doing what creating a module that just installed a
handler that appends FD info onto a queue and then have a python call
that will check that queue suitable for use in an event loop.

It's my first python C extension so there's a few things I'm sure I'm
not doing right, most notably finding the spot to put finalization
code in.
Chris Green <cmg at>
"I'm beginning to think that my router may be confused."

More information about the Python-list mailing list