#NEWLINE# def killall( self , process_name , signal = None , as_root = False ) : #NEWLINE# #INDENT# '\n        Kill all processes with the specified name.\n\n            :param process_name: The name of the process(es) to kill.\n            :param signal: Specify which singal to send to the process. This must\n                           be a valid value for -s option of kill. Defaults to ``None``.\n\n        Modified in version 2.1.5: added ``as_root`` parameter.\n\n        ' #NEWLINE# for pid in self . get_pids_of ( process_name ) : #NEWLINE# #INDENT# self . kill ( pid , signal = signal , as_root = pid )