Module ImportFrom alias alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr While NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str decorator_list
N/A __future__ absolute_import unicode_literals N/A logging N/A threading N/A pykka mopidy.compat thread N/A logger N/A N/A logging getLogger __name__ exit_process N/A N/A N/A N/A N/A N/A N/A logger debug Interrupting main... N/A N/A N/A thread interrupt_main N/A N/A N/A logger debug Interrupted main N/A sigterm_handler N/A N/A signum frame N/A N/A N/A A :mod:`signal` handler which will exit the program on signal.

    This function is not called when the process' main thread is running a GLib
    mainloop. In that case, the GLib mainloop must listen for SIGTERM signals
    and quit itself.

    For Mopidy subcommands that does not run the GLib mainloop, this handler
    ensures a proper shutdown of the process on SIGTERM.
     N/A N/A N/A logger info Got SIGTERM signal. Exiting... N/A N/A exit_process N/A stop_actors_by_class N/A N/A klass N/A N/A N/A actors N/A N/A N/A pykka ActorRegistry get_by_class klass N/A N/A N/A logger debug Stopping %d instance(s) of %s N/A len actors N/A klass __name__ N/A actor actors N/A N/A N/A N/A actor stop N/A stop_remaining_actors N/A N/A N/A N/A N/A num_actors N/A len N/A N/A N/A pykka ActorRegistry get_all N/A num_actors N/A N/A N/A N/A logger error There are actor threads still running, this is probably a bug N/A N/A N/A logger debug Seeing %d actor and %d non-actor thread(s): %s num_actors N/A N/A N/A threading active_count num_actors N/A N/A ,  join N/A N/A t name N/A t N/A N/A threading enumerate N/A N/A N/A logger debug Stopping %d actor(s)... num_actors N/A N/A N/A N/A pykka ActorRegistry stop_all N/A num_actors N/A len N/A N/A N/A pykka ActorRegistry get_all N/A N/A N/A logger debug All actors stopped. N/A