6 #ifndef PLUGINMONITOR_H
7 #define PLUGINMONITOR_H
38 const std::vector<PluginConfig*> &plugins,
39 const std::vector<NetworkConfig*> &networks);
52 static pid_t fork_plugin(
const std::string path,
const std::vector<std::string> arguments,
const std::string executable);
53 static void stop_plugin(
PluginState *state,
bool hard);
54 static void plugin_failed(
PluginState *state,
bool permanent =
false);
56 std::string pluginDirectory_;
58 std::vector<PluginState*> state_;
59 volatile sig_atomic_t should_run_;