On 06 April 2003, Thomas Speck said:
> From the Python documentation:
>
> "Not all built-in functions that may block waiting for I/O allow other
> threads to run. (The most popular ones (time.sleep(), file.read(),
> select.select()) work as expected.) "
>
> I think it's the way python handles threads, since Linux still treats
> threads internally as processes it's not supposed to block all threads.
D'ohhh! Of course! It's all my fault -- I was calling ioctl() from an
extension module, and forgot to wrap the call with
Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS. Added those two lines
of code and now everything works perfectly.
I know how Python works, really, I do ... ;-> Thanks Thomas!
Greg
--
Greg Ward <[EMAIL PROTECTED]> http://www.gerg.ca/
MTV -- get off the air!
-- Dead Kennedys
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/