]> Cypherpunks repositories - gostls13.git/commit
os: terminate windows processes via handle directly
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 25 May 2021 14:23:16 +0000 (16:23 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 4 Jun 2021 17:21:40 +0000 (17:21 +0000)
commit105c5b50e0098720b9e24aea5efa8e161c31db6d
tree688517c044b7984b120d1d053f42e8c9ad1315d9
parent79cd407f88f640b889df7645bf3e0491ed25eac7
os: terminate windows processes via handle directly

We already have a handle to the process, so use that for termination,
rather than doing a new lookup based on the PID.

Change-Id: I2958c1817f12f3dd783412baacbf629049f6956a
Reviewed-on: https://go-review.googlesource.com/c/go/+/322509
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/exec_windows.go