]> Cypherpunks repositories - gostls13.git/commit
os: avoid finalizer race in windows process object
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 25 May 2021 14:24:41 +0000 (16:24 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 4 Jun 2021 17:21:49 +0000 (17:21 +0000)
commit3a9d906edcfd0fa574ecd5498f8999b56f1e5fa1
treec4c52069ca0c388ae04ea8e25b9e30a796a51843
parent105c5b50e0098720b9e24aea5efa8e161c31db6d
os: avoid finalizer race in windows process object

If proc.Release is called concurrently, a handle will be double-freed.

Change-Id: I0c0c32e312e07bc8615e0bf9e9b691214444d8d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/322510
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