[Twisted-Python] Two things in twisted.internet.process

Matt Campbell mattcampbell at pobox.com
Sun Jul 28 14:19:39 MDT 2002


1.  I noticed that when Process.__init__ prepares to execute the
child process, it closes all fd's from 3 to 255.  Is it possible
for the child process to inherit open files with fd's greater than
255?  I'm concerned that this could happen on busy servers, but
this is one aspect of Unix about which I don't know much.

2.  To increase consistency with the usual interface between
transports and protocols, I think it would be good to implement a
loseConnection method in the Process class that does what closeStdin
does now.
-- 
Matt Campbell
Email and MSN Messenger:  mattcampbell at pobox.com
Phone:  (316) 652-8727
Web site:  http://www.pobox.com/~mattcampbell/




More information about the Twisted-Python mailing list