def _start_worker_process(job_list, work_queue, results_queue):

    worker = multiprocessing.Process(
        target=_worker_process,
        args=(job_list, work_queue, results_queue))

    pid = os.getpid()

    try:
        worker.start()
    except __HOLE__:
        current_pid = os.getpid()
        if pid != current_pid:
            # We've encountered an unexpected error.
            # We are in the worker process.
            # This matches the strange 'Devnull' error, see comments in the
            # custom exception class for more details
            raise MultiprocessingWorkerFinishError(
                'Worker with pid {} oddly failed to finish.'.format(
                    current_pid))

    return worker
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlmp_cyclingpool.py/_start_worker_process