This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author troels
Recipients
Date 2003-06-27.14:58:01
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The code below (from Lib/popen2.py) appears to leak no
less then 4 filedescriptors if os.fork() raises an
exception (say "OSError: [Errno 12] Not enough space"
on a Solaris box running out of swap).

Popen3.__init__() appears to leak 6 filedescriptors.

class Popen4(Popen3):
    def __init__(self, cmd, bufsize=-1):
        p2cread, p2cwrite = os.pipe()
        c2pread, c2pwrite = os.pipe()
        self.pid = os.fork()
History
Date User Action Args
2007-08-23 14:14:17adminlinkissue761888 messages
2007-08-23 14:14:17admincreate