mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
Don't restart my machine if I add code to kill a failed plugin.
This commit is contained in:
parent
c67f1f92a8
commit
55168e66ad
1 changed files with 2 additions and 0 deletions
|
@ -374,6 +374,8 @@ void plugin_kill(struct plugin *plugin, enum log_level loglevel,
|
|||
log_(plugin->log, loglevel,
|
||||
NULL, loglevel >= LOG_UNUSUAL,
|
||||
"Killing plugin: %s", msg);
|
||||
/* Unless, maybe, plugin was *really* important? */
|
||||
assert(plugin->pid != -1);
|
||||
kill(plugin->pid, SIGKILL);
|
||||
if (plugin->start_cmd) {
|
||||
plugin_cmd_killed(plugin->start_cmd, plugin, msg);
|
||||
|
|
Loading…
Add table
Reference in a new issue