mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 22:23:38 +02:00
Fix completion worker stdout handling on windows
This commit is contained in:
parent
78a5c3fd0f
commit
247e4ec674
1 changed files with 3 additions and 3 deletions
|
|
@ -29,9 +29,9 @@ def __init__(self, worker_entry_point='main'):
|
|||
|
||||
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…
Reference in a new issue