This issue has been solved by following Cygwin Doc:
Python: no fork for posix
-
15-07-2023 - |
Question
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,
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow