guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

231/376: nix-daemon: Close unnecessary fd


From: Ludovic Courtès
Subject: 231/376: nix-daemon: Close unnecessary fd
Date: Wed, 28 Jan 2015 22:05:16 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit 9b146a52f1395633e0ef319cfbe0bc452a796330
Author: Eelco Dolstra <address@hidden>
Date:   Thu Sep 25 18:45:43 2014 +0200

    nix-daemon: Close unnecessary fd
---
 src/nix-daemon/nix-daemon.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 0f3235d..8ec54e4 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -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"));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]