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 vstinner
Recipients neologix, pitrou, ryan003, victorpoluceno, vstinner
Date 2011-05-22.14:04:29
SpamBayes Score 0.00148141
Marked as misclassified No
Message-id <1306073069.79.0.608169660551.issue5715@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know if it's related, but SimpleXMLRPCServer in Python 2.7 uses fcntl(self.fileno(), fcntl.F_SETFD, flags):

class SimpleXMLRPCServer(SocketServer.TCPServer,
                         SimpleXMLRPCDispatcher):
    ...
    def __init__(self, ...):
        ...
        # [Bug #1222790] If possible, set close-on-exec flag; if a
        # method spawns a subprocess, the subprocess shouldn't have
        # the listening socket open.
        if fcntl is not None and hasattr(fcntl, 'FD_CLOEXEC'):
            flags = fcntl.fcntl(self.fileno(), fcntl.F_GETFD)
            flags |= fcntl.FD_CLOEXEC
            fcntl.fcntl(self.fileno(), fcntl.F_SETFD, flags)

=> see also issue #1222790.
History
Date User Action Args
2011-05-22 14:04:29vstinnersetrecipients: + vstinner, pitrou, ryan003, victorpoluceno, neologix
2011-05-22 14:04:29vstinnersetmessageid: <1306073069.79.0.608169660551.issue5715@psf.upfronthosting.co.za>
2011-05-22 14:04:29vstinnerlinkissue5715 messages
2011-05-22 14:04:29vstinnercreate