nix-daemon: Close unnecessary fd
This commit is contained in:
parent
e74390a16f
commit
6092a48603
|
@ -904,6 +904,8 @@ static void daemonLoop()
|
|||
|
||||
/* Fork a child to handle the connection. */
|
||||
startProcess([&]() {
|
||||
fdSocket.close();
|
||||
|
||||
/* Background the daemon. */
|
||||
if (setsid() == -1)
|
||||
throw SysError(format("creating a new session"));
|
||||
|
|
Loading…
Reference in New Issue