diff --git a/bin/pid_watcher.py b/bin/pid_watcher.py index 80f508fb..f3d6e555 100755 --- a/bin/pid_watcher.py +++ b/bin/pid_watcher.py @@ -80,6 +80,8 @@ class Handler(pyinotify.ProcessEvent): if event.pathname in watched: watched[event.pathname]['modified'] = True logging.info("modified %s" % event.pathname) + if self.check_all(): + sys.exit(0) # for debug # def process_default(self, event): # if watched.has_key(event.pathname):