lightningd: close one more fd for subdaemons.

Noticed by stracing for an unrelated problem.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-12-28 09:50:09 +10:30
parent 9f02b6eb59
commit 18526a3a5b
1 changed files with 1 additions and 1 deletions

View File

@ -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);