mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user