code: def watch_processes(self):
          
  
          for process in list(self.processes):
              self.watch_process(process)
  
          # Cleanup processes
          self.processes = [p for p in self.processes if not p.get("dead")]
  
          if self.stopping and len(self.processes) == 0:
              self.stop_watch()
docs: Manages the status of all the known processes