mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-18 13:08:13 +02:00
subd: Do not close STDOUT in sub-daemons
The STDOUT fd being reused as communication sockets with other daemons was causing some unexpected crashes if the sub-daemon wrote something, e.g., using `log_*`. Not closing it should avoid that conflict.
This commit is contained in:
parent
d2c626820f
commit
21d7ed0cf6
1 changed files with 0 additions and 1 deletions
|
|
@ -129,7 +129,6 @@ static int subd(const char *dir, const char *name, bool debug,
|
|||
goto child_errno_fail;
|
||||
fdnum++;
|
||||
}
|
||||
close(STDOUT_FILENO);
|
||||
|
||||
/* Make (fairly!) sure all other fds are closed. */
|
||||
max = sysconf(_SC_OPEN_MAX);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue