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)
What should it do? Why are we forcing close-on-exec on the descriptor of the socket?
Hello Josh,
In the SimpleJSONRPCServer is see this code:
What should it do? Why are we forcing close-on-exec on the descriptor of the socket?
Thanks and regards, Jan