-do unload plugin, use _exit() after execvp() failure

This commit is contained in:
Christian Grothoff 2015-09-22 15:31:58 +02:00
parent b022232a59
commit 73c8b6787c
2 changed files with 1 additions and 4 deletions

View File

@ -561,7 +561,7 @@ run_fake_client ()
"Failed to run both `nc' and `ncat': %s\n", "Failed to run both `nc' and `ncat': %s\n",
strerror (errno)); strerror (errno));
} }
exit (0); _exit (1);
} }
/* parent process */ /* parent process */
GNUNET_break (0 == close (fd)); GNUNET_break (0 == close (fd));
@ -757,7 +757,6 @@ main (int argc,
TMH_plugin->drop_temporary (TMH_plugin->cls, TMH_plugin->drop_temporary (TMH_plugin->cls,
session); session);
} }
TALER_MINTDB_plugin_unload (TMH_plugin); TALER_MINTDB_plugin_unload (TMH_plugin);
return (GNUNET_SYSERR == ret) ? 1 : 0; return (GNUNET_SYSERR == ret) ? 1 : 0;
} }

View File

@ -77,10 +77,8 @@ TALER_MINTDB_plugin_unload (struct TALER_MINTDB_Plugin *plugin)
if (NULL == plugin) if (NULL == plugin)
return; return;
lib_name = plugin->library_name; lib_name = plugin->library_name;
#if SKIP
GNUNET_assert (NULL == GNUNET_PLUGIN_unload (lib_name, GNUNET_assert (NULL == GNUNET_PLUGIN_unload (lib_name,
plugin)); plugin));
#endif
GNUNET_free (lib_name); GNUNET_free (lib_name);
} }