Update ps command in taskkill to also work on linux

R=kustermann@google.com

Review URL: https://codereview.chromium.org//23946003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27101 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ricow@google.com
2013-09-04 08:52:20 +00:00
parent fcc7862611
commit 63eaf527ac
+1 -1
View File
@@ -50,7 +50,7 @@ def GetOptions():
def GetPidsPosix(process_name):
# This is to have only one posix command, on linux we could just do:
# pidof process_name
cmd = 'ps -e -o pid=,comm='
cmd = 'ps -e -o pid= -o comm='
# Sample output:
# 1 /sbin/launchd
# 80943 /Applications/Safari.app/Contents/MacOS/Safari