]> git.parisson.com Git - telecaster-client.git/commitdiff
fix status args
authoryomguy <yomguy@parisson.com>
Tue, 16 Jul 2013 23:16:15 +0000 (01:16 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 16 Jul 2013 23:16:15 +0000 (01:16 +0200)
telecaster/tools/tools.py

index 258d5e72ea0bfb9759e9976f6c83d33cc1a4f0ef..9e145f891a6625af6b14afea9a5486324916eeb4 100644 (file)
@@ -110,7 +110,8 @@ def get_pid(name, args=None):
         if proc.cmdline:
             if name == proc.name:
                 if args:
-                    if args in proc.cmdline[-1]:
+                    print proc.cmdline
+                    if args in proc.cmdline[1:]:
                         return proc.pid
                 else:
                     return proc.pid