[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
103/118: nix-daemon: Close unnecessary fd
From: |
Ludovic Courtès |
Subject: |
103/118: nix-daemon: Close unnecessary fd |
Date: |
Tue, 19 May 2015 14:45:59 +0000 |
civodul pushed a commit to branch nix
in repository guix.
commit 6092a48603ea7888f8a1f69db87835bc339c973a
Author: Eelco Dolstra <address@hidden>
Date: Thu Sep 25 18:45:43 2014 +0200
nix-daemon: Close unnecessary fd
---
nix/nix-daemon/nix-daemon.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index 9cfa343..e74074f 100644
--- a/nix/nix-daemon/nix-daemon.cc
+++ b/nix/nix-daemon/nix-daemon.cc
@@ -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"));
- 82/118: Eliminate redundant copy, (continued)
- 82/118: Eliminate redundant copy, Ludovic Courtès, 2015/05/19
- 95/118: Make hook shutdown more reliable, Ludovic Courtès, 2015/05/19
- 81/118: findRoots(): Prevent a call to lstat(), Ludovic Courtès, 2015/05/19
- 101/118: On Linux, disable address space randomization, Ludovic Courtès, 2015/05/19
- 91/118: Use regular file GC roots if possible, Ludovic Courtès, 2015/05/19
- 102/118: Remove bogus comment, Ludovic Courtès, 2015/05/19
- 80/118: Make readDirectory() return inode / file type, Ludovic Courtès, 2015/05/19
- 94/118: Doh, Ludovic Courtès, 2015/05/19
- 96/118: fix disappearing bash arguments, Ludovic Courtès, 2015/05/19
- 104/118: createDirs(): Handle ‘path’ being a symlink, Ludovic Courtès, 2015/05/19
- 103/118: nix-daemon: Close unnecessary fd,
Ludovic Courtès <=
- 97/118: Introduce allowedRequisites feature, Ludovic Courtès, 2015/05/19
- 113/118: Clean up temp roots in a more C++ way, Ludovic Courtès, 2015/05/19
- 105/118: Remove some duplicate code, Ludovic Courtès, 2015/05/19
- 108/118: Improve error message if the daemon worker fails to start, Ludovic Courtès, 2015/05/19
- 100/118: Settings: Add bool get(), Ludovic Courtès, 2015/05/19
- 106/118: Improved error message when encountering unsupported file types, Ludovic Courtès, 2015/05/19
- 114/118: nix-daemon: Call exit(), not _exit(), Ludovic Courtès, 2015/05/19
- 99/118: Add an 'optimiseStore' remote procedure call., Ludovic Courtès, 2015/05/19
- 107/118: Fix build on gcc < 4.7, Ludovic Courtès, 2015/05/19
- 98/118: Add disallowedReferences / disallowedRequisites, Ludovic Courtès, 2015/05/19