]> Cypherpunks repositories - gostls13.git/commit
runtime, plugin: error not throw on duplicate open
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 2 Sep 2017 16:05:35 +0000 (12:05 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Sat, 9 Sep 2017 16:26:33 +0000 (16:26 +0000)
commitd8ae2156fe08f31f9b20a79b6971638c5bf203b5
tree3619d960bfd11ddf4ea45fc60f6c30048f8bab55
parent4e2ef7f7f9a3351c3774148c40fe0d7f12403da5
runtime, plugin: error not throw on duplicate open

Along the way, track bad modules. Make sure they don't end up on
the active modules list, and aren't accidentally reprocessed as
new plugins.

Fixes #19004

Change-Id: I8a5e7bb11f572f7b657a97d521a7f84822a35c07
Reviewed-on: https://go-review.googlesource.com/61171
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testplugin/src/host/host.go
misc/cgo/testplugin/test.bash
src/plugin/plugin.go
src/plugin/plugin_dlopen.go
src/runtime/plugin.go
src/runtime/symtab.go