From fbeef504f5fa1765caab68a856af09e247d49ec7 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 8 Dec 2018 11:02:56 +1030 Subject: [PATCH] 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 --- lightningd/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/plugin.c b/lightningd/plugin.c index 72457a46f..0cf31a15e 100644 --- a/lightningd/plugin.c +++ b/lightningd/plugin.c @@ -785,7 +785,7 @@ void plugins_init(struct plugins *plugins, const char *dev_plugin_debug) cmd[0] = p->cmd; if (debug) cmd[1] = "--debugger"; - p->pid = pipecmdarr(&stdin, &stdout, NULL, cmd); + p->pid = pipecmdarr(&stdin, &stdout, &pipecmd_preserve, cmd); if (p->pid == -1) fatal("error starting plugin '%s': %s", p->cmd,