mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
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:
parent
9f02b6eb59
commit
18526a3a5b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user