[pygtk] how to close the X connection file descriptor?

James Henstridge james@daa.com.au
Thu, 16 Nov 2000 17:37:04 +0800 (WST)


On Wed, 15 Nov 2000, Fred L. Drake, Jr. wrote:

> 
> James Henstridge writes:
>  > You probably want to set the FD_CLOEXEC fcntl on all file descriptors >= 3
>  > (as 0,1,2 are stdin,out and err).  There is a sysconf call to get the
>  > maximum file descriptor number, but I don't know if this is available from
>  > python.  So except for getting the maximum file descriptor number, the
>  > rest can be done with the fcntl and FCNTL modules.
> 
>   Check the documentation for os.sysconf(), available as of Python
> 1.6.

Oops.  The machine I was using when I wrote that mail didn't have the new
version installed.

James.