From 247e4ec6742ea1a474be49ff0fb32c07353c2a21 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 Nov 2014 17:20:44 +0530 Subject: [PATCH] Fix completion worker stdout handling on windows --- src/calibre/gui2/tweak_book/completion/worker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/tweak_book/completion/worker.py b/src/calibre/gui2/tweak_book/completion/worker.py index 4feb844e7d..794346b743 100644 --- a/src/calibre/gui2/tweak_book/completion/worker.py +++ b/src/calibre/gui2/tweak_book/completion/worker.py @@ -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))