]> Cypherpunks repositories - gostls13.git/commit
os/exec: remove protection against simultaneous Wait/Write
authorIan Lance Taylor <iant@golang.org>
Fri, 22 Sep 2017 19:03:52 +0000 (12:03 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 22 Sep 2017 21:10:07 +0000 (21:10 +0000)
commit8cb2952f2f9c80246572b951e2663e79962796c0
treee21f255b748f537e5ccd79d5edd8f3093f6dd584
parent4c02eaf77e2eae7d92d22216af040c04d6879fc6
os/exec: remove protection against simultaneous Wait/Write

CL 31148 added code to protect again simultaneous calls to Close and
Wait when using the standard input pipe, to fix the race condition
described in issue #9307. That issue is a special case of the race
between Close and Write described by issue #7970. Since issue #7970
was not fixed, CL 31148 fixed the problem specific to os/exec.

Since then, issue #7970 has been fixed, so the specific fix in os/exec
is no longer necessary. Remove it, effectively reverting CL 31148 and
followup CL 33298.

Updates #7970
Updates #9307
Updates #17647

Change-Id: Ic0b62569cb0aba44b32153cf5f9632bd1f1b411a
Reviewed-on: https://go-review.googlesource.com/65490
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Miguel Bernabeu <miguelbernadi@gmail.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Joe Tsai <joetsai@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/exec/exec.go