From 18526a3a5b7ab1e38aa64d0edfd444d5f186f637 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 28 Dec 2021 09:50:09 +1030 Subject: [PATCH] lightningd: close one more fd for subdaemons. Noticed by stracing for an unrelated problem. Signed-off-by: Rusty Russell --- lightningd/subd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/subd.c b/lightningd/subd.c index ee9d0d79d..bebd5adc1 100644 --- a/lightningd/subd.c +++ b/lightningd/subd.c @@ -241,7 +241,7 @@ static int subd(const char *path, const char *name, goto child_errno_fail; /* Make (fairly!) sure all other fds are closed. */ - closefrom(tal_count(fds) + 1); + closefrom(tal_count(fds)); num_args = 0; args[num_args++] = tal_strdup(NULL, path);