From 08a2b185043d3b7a9f746e42f47a5e06cf4bbeae Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 21 Feb 2024 17:00:26 -0700 Subject: Finally found the source of the deadlock bug. I was initializing the plugin twice, causing hs_init to be called twice rendering the teardown call to hs_exit useless. Things finally appear to be working as intended, and it's likely this plugin architecture will work afterall! --- harness/src/plugin.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'harness/src/plugin.c') diff --git a/harness/src/plugin.c b/harness/src/plugin.c index 3c18d03..8226db7 100644 --- a/harness/src/plugin.c +++ b/harness/src/plugin.c @@ -222,8 +222,6 @@ int plugin_hot_reload(int argc, char **argv, const char *filepath, goto fail; } - printf("Loading plugin ...\n"); - plugin->plugin_load(plugin->argc, plugin->argv, &plugin->foreign_intf); printf("Hot starting plugin ...\n"); plugin->state = plugin->plugin_hot_start(marshalled_state, sz); -- cgit