From d8ae2156fe08f31f9b20a79b6971638c5bf203b5 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Sat, 2 Sep 2017 12:05:35 -0400 Subject: 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/plugin/plugin.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugin/plugin.go') 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{} } -- cgit v1.3