code: def handle_process_exit_code(exit_code):
      
      # if we exited from a signal, let our exit code reflect that
      if os.WIFSIGNALED(exit_code):
          exit_code = -os.WTERMSIG(exit_code)
      # otherwise just give us a normal exit code
      elif os.WIFEXITED(exit_code):
          exit_code = os.WEXITSTATUS(exit_code)
      else:
          raise RuntimeError("Unknown child exit status!")
  
      return exit_code
docs: this should only ever be called once for each child process