]> git.parisson.com Git - telecaster-client.git/commitdiff
status: fix psutil bug
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 16 Jan 2015 18:05:40 +0000 (19:05 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 16 Jan 2015 18:05:40 +0000 (19:05 +0100)
telecaster/tools/tools.py

index b096829ec15b5714a8fa5dbf5bfc452645c4da96..c0fe84ebf8a8954d6482c06e6097a6dd4cff4a8c 100644 (file)
@@ -107,7 +107,7 @@ def get_pid(name, args=None):
     """Get a process pid filtered by arguments and uid"""
     for proc in psutil.process_iter():
         if proc.cmdline:
-            if name == proc.name:
+            if name == proc.name():
                 if args:
                     if args in proc.cmdline[1:]:
                         return proc.pid