Package portage :: Package util :: Package _async :: Module run_main_scheduler
[hide private]

Module run_main_scheduler

source code

Functions [hide private]
 
run_main_scheduler(scheduler)
Start and run an AsyncScheduler (or compatible object), and handle SIGINT or SIGTERM by calling its terminate() method and waiting for it to clean up after itself.
source code
Variables [hide private]
  __package__ = 'portage.util._async'

Imports: signal


Function Details [hide private]

run_main_scheduler(scheduler)

source code 

Start and run an AsyncScheduler (or compatible object), and handle SIGINT or SIGTERM by calling its terminate() method and waiting for it to clean up after itself. If SIGINT or SIGTERM is received, return signum, else return None. Any previous SIGINT or SIGTERM signal handlers are automatically saved and restored before returning.