문제

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