Re: os.pipe and subprocess under Windows

2008-11-17 Thread Jeremy Sanders
Jeremy Sanders wrote: > Hi - I have some code which works under linux. It starts a remote python > process using subprocess and communicates to it via a pipe created by > os.pipe. As far as I understand, child processes should inherit file > descriptors from the parent if close_fds=False on the su

Re: os.pipe and subprocess under Windows

2008-11-17 Thread Jeremy Sanders
Lawrence D'Oliveiro wrote: > : > > If close_fds is true, all file descriptors except 0, 1 and 2 will be > closed before the child process is executed. (Unix only). Or, on > Windows, if close_fds is true then no handles will be inherited

Re: os.pipe and subprocess under Windows

2008-11-17 Thread Lawrence D'Oliveiro
Jeremy Sanders wrote: > As far as I understand, child processes should inherit file > descriptors from the parent if close_fds=False on the suprocess.Popen > command line. > > This code doesn't work under Window, but gives "bad file descriptor" when > trying to read from the pipe in the child pro

os.pipe and subprocess under Windows

2008-11-17 Thread Jeremy Sanders
Hi - I have some code which works under linux. It starts a remote python process using subprocess and communicates to it via a pipe created by os.pipe. As far as I understand, child processes should inherit file descriptors from the parent if close_fds=False on the suprocess.Popen command line. Th