mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
plugin: preserve stderr for plugins.
Now we've updated ccan/pipecmd, we can use pipecmd_preserve to preserve stderr for plugins so we see their error spew. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -785,7 +785,7 @@ void plugins_init(struct plugins *plugins, const char *dev_plugin_debug)
|
|||||||
cmd[0] = p->cmd;
|
cmd[0] = p->cmd;
|
||||||
if (debug)
|
if (debug)
|
||||||
cmd[1] = "--debugger";
|
cmd[1] = "--debugger";
|
||||||
p->pid = pipecmdarr(&stdin, &stdout, NULL, cmd);
|
p->pid = pipecmdarr(&stdin, &stdout, &pipecmd_preserve, cmd);
|
||||||
|
|
||||||
if (p->pid == -1)
|
if (p->pid == -1)
|
||||||
fatal("error starting plugin '%s': %s", p->cmd,
|
fatal("error starting plugin '%s': %s", p->cmd,
|
||||||
|
|||||||
Reference in New Issue
Block a user