This commit is contained in:
Kovid Goyal 2020-05-02 09:02:40 +05:30
parent 3318387ddb
commit 7b6416ac65
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -107,7 +107,8 @@ if islinux:
Listener.__init__(self, *args, **kwargs) Listener.__init__(self, *args, **kwargs)
# multiprocessing tries to call unlink even on abstract # multiprocessing tries to call unlink even on abstract
# named sockets, prevent it from doing so. # named sockets, prevent it from doing so.
self._listener._unlink.cancel() if self._listener._unlink is not None:
self._listener._unlink.cancel()
# Prevent child processes from inheriting this socket # Prevent child processes from inheriting this socket
# If we dont do this child processes not created by calibre, will # If we dont do this child processes not created by calibre, will
# inherit this socket, preventing the calibre GUI from being restarted. # inherit this socket, preventing the calibre GUI from being restarted.