From 78fc7f0dd80db1f5f5e9189df47a0710ff9e1dbe Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Thu, 11 Jun 2015 11:56:24 +0200 Subject: [PATCH] MT#13297 pid_watcher.py will trigger check_all on event 'modified' Change-Id: I77dad7f6757ecf5b471341732b9cd003efb1dece --- bin/pid_watcher.py | 2 ++ 1 file changed, 2 insertions(+) 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):