Message136528
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. |
|
| Date |
User |
Action |
Args |
| 2011-05-22 14:04:29 | vstinner | set | recipients:
+ vstinner, pitrou, ryan003, victorpoluceno, neologix |
| 2011-05-22 14:04:29 | vstinner | set | messageid: <1306073069.79.0.608169660551.issue5715@psf.upfronthosting.co.za> |
| 2011-05-22 14:04:29 | vstinner | link | issue5715 messages |
| 2011-05-22 14:04:29 | vstinner | create | |
|