mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix completion worker stdout handling on windows
This commit is contained in:
parent
78a5c3fd0f
commit
247e4ec674
@ -29,9 +29,9 @@ class CompletionWorker(Thread):
|
||||
|
||||
def launch_worker_process(self):
|
||||
from calibre.utils.ipc.server import create_listener
|
||||
from calibre.utils.ipc.simple_worker import start_pipe_worker
|
||||
self.worker_process = p = start_pipe_worker(
|
||||
'from {0} import run_main, {1}; run_main({1})'.format(self.__class__.__module__, self.worker_entry_point), stdout=None)
|
||||
from calibre.utils.ipc.pool import start_worker
|
||||
self.worker_process = p = start_worker(
|
||||
'from {0} import run_main, {1}; run_main({1})'.format(self.__class__.__module__, self.worker_entry_point))
|
||||
auth_key = os.urandom(32)
|
||||
address, self.listener = create_listener(auth_key)
|
||||
eintr_retry_call(p.stdin.write, cPickle.dumps((address, auth_key), -1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user