def cleanupHandler(self, req): """ Clean up stuff before we close down the session when we are called from apacheServer.Cleanup() """ log_debug(1) self.input = None # kill all of our child processes (if any) while 1: pid = status = -1 try: (pid, status) = os.waitpid(-1, 0) except OSError: break else: log_error("Reaped child process %d with status %d" % (pid, status)) ret = rhnApache.cleanupHandler(self, req) return ret