def TeardownMultiprocessingProcesses():
  # Shut down all processes in consumer pools in preparation for exiting.
  ShutDownGsutil()
  # Shut down command and util's multiprocessing.Manager().
  # pylint: disable=global-variable-not-assigned,global-variable-undefined
  global manager
  # pylint: enable=global-variable-not-assigned,global-variable-undefined
  manager.shutdown()
  gslib.util.manager.shutdown()
Should be called by signal handlers prior to shut down.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/command.py/TeardownMultiprocessingProcesses