diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-07-14 16:12:43 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-07-14 16:12:43 +0200 |
commit | 1a501af16db1f1122b7709b83c41cb4c1115f661 (patch) | |
tree | cbcd524310c47646444aff0c4741eeac415fd16f /whatmaps | |
parent | 48c912b193cb9be1f804b95f30711dfac5bed4e9 (diff) |
Abort early if we found a match
Once we found a shared object that a process maps we don't need to
continue with the other shared objects since one is enough to require
a process restart.
Diffstat (limited to 'whatmaps')
-rwxr-xr-x | whatmaps/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/whatmaps/command.py b/whatmaps/command.py index 7690ef8..e649cbb 100755 --- a/whatmaps/command.py +++ b/whatmaps/command.py @@ -39,7 +39,7 @@ def check_maps(procs, shared_objects): restart_procs[proc.exe] += [ proc ] else: restart_procs[proc.exe] = [ proc ] - continue + break return restart_procs |