➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 pierreglaser
收信人 davin, pierreglaser, pitrou
日期 2019-03-19.16:38:01
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1553013481.49.0.145631506322.issue36368@roundup.psfhosted.org>
In-reply-to
内容
When starting a SharedMemoryManager in an interactive session, any KeyboardInterrupt event will be transmitted to the (sub)process running the shared memory server, which causes the Manager to be unusable thereafter:

>>> from multiprocessing.managers import SharedMemoryManager
>>> smm = SharedMemoryManager()
>>> smm.start()
>>> start typing something wrong
KeyboardInterrupt
>>> sl = smm.ShareableList(range(10))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pierreglaser/repos/cpython/Lib/multiprocessing/managers.py", line 1342, in ShareableList
    with self._Client(self._address, authkey=self._authkey) as conn:
  File "/home/pierreglaser/repos/cpython/Lib/multiprocessing/connection.py", line 502, in Client
    c = SocketClient(address)
  File "/home/pierreglaser/repos/cpython/Lib/multiprocessing/connection.py", line 629, in SocketClient
    s.connect(address)
FileNotFoundError: [Errno 2] No such file or directory


I suggest ignoring SIGINT in the server process.
历史
日期 用户 动作 参数
2019-03-19 16:38:01pierreglaser修改recipients: + pierreglaser, pitrou, davin
2019-03-19 16:38:01pierreglaser修改messageid: <1553013481.49.0.145631506322.issue36368@roundup.psfhosted.org>
2019-03-19 16:38:01pierreglaser链接issue36368 messages
2019-03-19 16:38:01pierreglaser创建