]> Cypherpunks repositories - gostls13.git/commit
internal/fuzz: pass handle to temporary file instead of the path
authorqmuntal <quimmuntal@gmail.com>
Tue, 27 Jun 2023 14:54:44 +0000 (16:54 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 20 Jul 2023 18:35:25 +0000 (18:35 +0000)
commita0f816e4bfb12b433deba2fe930fcbde36ca6ff7
treef4bdf92ac37d095df973cea413b52c8a4cd2db92
parentd3e3e11298eff0c113cec303054ec2f45075e95c
internal/fuzz: pass handle to temporary file instead of the path

This CL partially reverts CL 297034. Inheritable handles are not
inherited by all workers thanks to using AdditionalInheritedHandles,
which explicitly specifies which handles to inherit by each worker.

This CL doesn't fix any bug, it's more of a cleanup, but also makes
the code more robust and more similar to its Unix counterpart.

Change-Id: I24c2d7f69dfb839a1aeb5858088d8f38b022f702
Reviewed-on: https://go-review.googlesource.com/c/go/+/506535
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/internal/fuzz/sys_windows.go