mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
The prior function updated the TEB's LastStatus member, which is not what we want to be doing here. It's also not consistent with Microsoft's own Go code for their pipe library, which properly uses the "NoTeb" variant like this commit. For good measure, we add a simple test case to make sure these paths are being exercised. Change-Id: I4080898f704bdc93a6048001b06ffce516fb412d Reviewed-on: https://go-review.googlesource.com/c/sys/+/298169 Trust: Jason A. Donenfeld <Jason@zx2c4.com> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>