Send socket object to forked running process (multiprocessing.Queue)

后端 未结 4 999
臣服心动
臣服心动 2021-01-18 14:14

I am learning to use HTML5 WebSockets and as part of that I am writing a server in Python so I can know the nitty gritty of how they work. I created one the other day that w

4条回答
  •  余生分开走
    2021-01-18 14:33

    If you create socket before process forking, then its file descriptor will be inherited by the children.

提交回复
热议问题