def check_children(options):
 for col in all_living_collectors():
  now = int(time.time())
  if ((col.interval == 0) and (col.last_datapoint < (now - options.allowed_inactivity_time))):
   LOG.warning('Terminating collector %s after %d seconds of inactivity', col.name, (now - col.last_datapoint))
   col.shutdown()
   if (not options.remove_inactive_collectors):
    register_collector(Collector(col.name, col.interval, col.filename, col.mtime, col.lastspawn))

def check_children ( options ) : for col in all_living_collectors ( ) : now = int ( time . time ( ) ) if ( ( col . interval == 0 ) and ( col . last_datapoint < ( now - options . allowed_inactivity_time ) ) ) : LOG . warning ( 'Terminating collector %s after %d seconds of inactivity' , col . name , ( now - col . last_datapoint ) ) col . shutdown ( ) if ( not options . remove_inactive_collectors ) : register_collector ( Collector ( col . name , col . interval , col . filename , col . mtime , col . lastspawn ) )
when a child process hasnt received a datapoint in a while .