#NEWLINE# @ classmethod #NEWLINE# def _try_cleanup_process( cls , pid ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( ret_pid , status ) = os . waitpid ( pid , os . WNOHANG ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# if ( e . args [ 0 ] == errno . ECHILD ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# if ( ret_pid == 0 ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# assert ( ret_pid == pid ) #NEWLINE# subproc = cls . _waiting . pop ( pid ) #NEWLINE# subproc . io_loop . add_callback_from_signal ( subproc . _set_returncode , status )