mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
nix-daemon: Close unnecessary fd
This commit is contained in:
parent
0ed1b924be
commit
9b146a52f1
1 changed files with 2 additions and 0 deletions
|
@ -767,6 +767,8 @@ static void daemonLoop(char * * argv)
|
|||
|
||||
/* 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 a new issue