'Reload the process if registered files have been modified.'

def run(self):

    for filename in (self.sysfiles() | self.files):
        if filename:
            if filename.endswith('.pyc'):
                filename = filename[:(-1)]
            oldtime = self.mtimes.get(filename, 0)
            if (oldtime is None):
                continue
            try:
                mtime = os.stat(filename).st_mtime
            except OSError:
                mtime = None
            if (filename not in self.mtimes):
                self.mtimes[filename] = mtime
            elif ((mtime is None) or (mtime > oldtime)):
                self.bus.log(('Restarting    because    %s    changed.' % filename))
                self.thread.cancel()
                self.bus.log(('Stopped    thread    %r.' % self.thread.getName()))
                self.bus.restart()
                return
