阅读背景:

阻止Python子进程在Windows上传递fds?

来源:互联网 

Python's subprocess module by default passes all open file descriptors to any child processes it spawns. This means that if the parent process is listening on a port, and is killed, it cannot restart and begin listening again (even using SO_REUSEADDR) because the child is still in possession of that descriptor. I have no control over the child process.Python's subprocess module by default passes al




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: