En Tue, 22 Jan 2008 13:02:35 -0200, Steven Watanabe <[EMAIL PROTECTED]> escribió:
> I'm using subprocess.Popen() to create a child process. The child > process is inheriting the parent process' open sockets, but I don't want > that. I believe that on Unix systems I could use the FD_CLOEXEC flag, > but I'm running Windows. Any suggestions? You could use the DuplicateHandle Windows API function with bInheritHandle=False to create a non inheritable socket handle, then close the original one. This should be done for every socket you don't want to be inherited. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list