質問

I am running Python on Cygwin while fork is very unstable. The program always fall on subprocess.py:

self.pid = _posixsubprocess.fork_exec(
    args, executable_list,
    close_fds, sorted(fds_to_keep), cwd, env_list,
    p2cread, p2cwrite, c2pread, c2pwrite,
    errread, errwrite,
    errpipe_read, errpipe_write,
    restore_signals, start_new_session, preexec_fn)
    self._child_created = True

While because Cygwin is recognized as posix, I am wondering if there is a method of calling subprocess without fork for posix. Any idea would be appreciated!

Thanks,

役に立ちましたか?

解決

This issue has been solved by following Cygwin Doc:

http://cygwin.com/faq.html#faq.using.fixing-fork-failures

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top