aboutsummaryrefslogtreecommitdiff
path: root/src/plugin/plugin.go
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2017-09-02 12:05:35 -0400
committerDavid Crawshaw <crawshaw@golang.org>2017-09-09 16:26:33 +0000
commitd8ae2156fe08f31f9b20a79b6971638c5bf203b5 (patch)
tree3619d960bfd11ddf4ea45fc60f6c30048f8bab55 /src/plugin/plugin.go
parent4e2ef7f7f9a3351c3774148c40fe0d7f12403da5 (diff)
downloadgo-d8ae2156fe08f31f9b20a79b6971638c5bf203b5.tar.xz
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>
Diffstat (limited to 'src/plugin/plugin.go')
-rw-r--r--src/plugin/plugin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugin/plugin.go b/src/plugin/plugin.go
index c774465812..c37b65fd82 100644
--- a/src/plugin/plugin.go
+++ b/src/plugin/plugin.go
@@ -20,6 +20,7 @@ package plugin
// Plugin is a loaded Go plugin.
type Plugin struct {
pluginpath string
+ err string // set if plugin failed to load
loaded chan struct{} // closed when loaded
syms map[string]interface{}
}