1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:04:42 -07:00
go/cmd
Tommy Schaefer 0770aced4f cmd/tipgodoc: Kill godoc process if http.ListenAndServe fails
Currently, if for some reason http.ListenAndServe fails, any running
running godoc processes don't get killed. I don't think this would ever
actually happen because, with godoc being set up in a separate go
routine, http.ListenAndServe would always(?) fail before the godoc
server started.

This change ensures that, if a Proxy has a cmd, it is closed when
http.ListenAndServe fails.

Change-Id: I0d3bfae0c16bc583248c2052a4d7a84c95127e76
Reviewed-on: https://go-review.googlesource.com/8570
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-04-08 14:14:19 +00:00
..
benchcmp benchmark/parser, cmd/benchcmp: improve names of exported identifiers 2015-01-15 01:28:17 +00:00
callgraph go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +00:00
cover cmd/cover: cover funcs in if, for, switch clauses 2015-03-31 19:20:52 +00:00
digraph tools: add import comments. 2014-12-09 22:42:16 +00:00
eg cmd/eg: improve usage and help messages 2015-03-17 16:03:11 +00:00
godex tools: add import comments. 2014-12-09 22:42:16 +00:00
godoc cmd/godoc: skip tests on arm platforms 2015-03-16 02:06:44 +00:00
goimports goimports: create a var to permit custom implementations of flag parsing and 2015-03-27 18:14:11 +00:00
gomvpkg cmd/mvpkg: a package moving tool 2015-01-14 17:37:29 +00:00
gorename cmd/gorename: make Usage documentation sensible in godoc 2014-12-30 16:36:43 +00:00
gotype tools: add import comments. 2014-12-09 22:42:16 +00:00
html2article all: address vet reports 2014-12-29 06:08:34 +00:00
oracle oracle: factor part of the initial setup for PTA queries 2015-03-30 21:02:07 +00:00
present cmd/present: do not show help text on localhost 2015-02-23 10:31:29 +00:00
ssadump cmd/ssadump: fix usage message 2015-04-02 16:54:45 +00:00
stringer cmd/stringer: remove os.Exit call from Usage func 2015-03-09 01:18:24 +00:00
tipgodoc cmd/tipgodoc: Kill godoc process if http.ListenAndServe fails 2015-04-08 14:14:19 +00:00
vet cmd/vet: -unusedresult: report calls of pure functions in expression statements 2015-04-06 21:44:23 +00:00