Skip to content

Commit 86c3959

Browse files
aamCommit Queue
authored andcommitted
[infra] When killing a process on Windows don't double-check the name.
tasklist truncates process name: ``` PS C:\src\d\sdk> tasklist /fi "imagename eq dartaotruntime_product.exe" /nh dartaotruntime_product.ex 27060 Console 1 123,188 K ``` Follow-up to 9acd26e. Change-Id: I2cf08548ae478b2f2d750862fecc1424852e47b9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404363 Reviewed-by: Alexander Markov <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
1 parent 4f5aacf commit 86c3959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/task_kill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def GetPidsWindows(process_name):
141141

142142
for line in lines:
143143
split = line.split()
144-
if len(split) > 2 and split[0] == process_name:
144+
if len(split) > 2:
145145
results.append(split[1])
146146
return results
147147

0 commit comments

Comments
 (0)