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 process.

<http://docs.python.org/library/subprocess.html>:

    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 by the
    child process.

Windows has no fork(2).
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to