#NEWLINE# def _get_process_children( pid ) : #NEWLINE# #INDENT# p = subprocess . Popen ( [ 'ps' , '--no-headers' , '-o' , 'pid' , '--ppid' , str ( l ) ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) #NEWLINE# ( stdout , stderr ) = p . communicate ( ) #NEWLINE# return [ int ( l ) for l in stdout . split ( ) ]