Message415272
A `BrokenPipeError` exception is raised when the queue thread of a `multiprocessing.Queue` still sends enqueued items to the write end of the queue pipe *after* the read end of the queue pipe has been [automatically closed during its garbage collection](https://docs.python.org/3/library/socket.html#socket.socket.close) following the garbage collection of the queue (the write end of the queue pipe is not garbage collected because it is also referenced by the queue thread):
```
import multiprocessing
def main():
q = multiprocessing.Queue()
q.put(0)
if __name__ == '__main__':
main()
``` |
|
Date |
User |
Action |
Args |
2022-03-15 18:28:33 | maggyero | set | recipients:
+ maggyero |
2022-03-15 18:28:33 | maggyero | set | messageid: <1647368913.23.0.350559928091.issue47029@roundup.psfhosted.org> |
2022-03-15 18:28:33 | maggyero | link | issue47029 messages |
2022-03-15 18:28:33 | maggyero | create | |
|