(in parent os.close(w) OSError: [Errno 9] Bad file descriptor) why am i getting this error while i try pipe between parent and child process

前端 未结 0 1064
孤街浪徒
孤街浪徒 2021-02-05 19:14

import os from multiprocessing import Pipe import sys import time

def child(w):

    msg = ("Spam").encode()
    os.write(w, msg)



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题