]> Cypherpunks repositories - gostls13.git/commit
cmd/go: delete ETXTBSY hack that is no longer needed
authorRuss Cox <rsc@golang.org>
Wed, 18 Oct 2017 02:33:21 +0000 (22:33 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 20 Oct 2017 19:03:42 +0000 (19:03 +0000)
commit7dcf406cfea0dd1f84fed0c69d3472b21e1c490d
tree65f81da4fc95d70010f38038fed2aedc12e852a7
parent08362246b6a1dd7bffeb68f1d5116b9b2fe6209a
cmd/go: delete ETXTBSY hack that is no longer needed

This hack existed because cmd/go used to install (write) and then run
cmd/cgo in the same invocation, and writing and then running a program
is a no-no in modern multithreaded Unix programs (see #22315).

As of CL 68338, cmd/go no longer installs any programs that it then
tries to use. It never did this for any program other than cgo, and
CL 68338 removed that special case for cgo.

Now this special case, added for #3001 long ago, can be removed too.

Change-Id: I338f1f8665e9aca823e33ef7dda9d19f665e4281
Reviewed-on: https://go-review.googlesource.com/71571
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/work/exec.go