docs: def worker_process(params, channel):
      """The worker process routines."""
      signal(SIGINT, SIG_IGN)
  
      if params.initializer is not None:
          if not run_initializer(params.initializer, params.initargs):
              os._exit(1)
  
      try:
          for task in worker_get_next_task(channel, params.max_tasks):
              payload = task.payload
              result = process_execute(
                  payload.function, *payload.args, **payload.kwargs)
              send_result(channel, Result(task.id, result))
      except (EnvironmentError, OSError, RuntimeError) as error:
          os._exit(error.errno if error.errno else 1)
      except EOFError:
          os._exit(0)