#NEWLINE# def stop_all( ) : #NEWLINE# #INDENT# procs = sorted ( processes . keys ( ) ) #NEWLINE# for pname in procs : #NEWLINE# #INDENT# process = processes [ pname ] [ 'process' ] #NEWLINE# if ( process is not None ) : #NEWLINE# #INDENT# process . terminate ( ) #NEWLINE# #UNINDENT# #UNINDENT# for pname in procs : #NEWLINE# #INDENT# process = processes [ pname ] [ 'process' ] #NEWLINE# if ( process is not None ) : #NEWLINE# #INDENT# process . join ( ) #NEWLINE# #UNINDENT# processes [ pname ] [ 'process' ] = None #NEWLINE# processes [ pname ] [ 'pid' ] = 0