aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-09 16:22:05 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-09 16:22:05 +0200
commitaf765a8eab288eb638100e027b97a1d15e4e3026 (patch)
tree0ab17da6aae1af4c83efef428deae6d0b534aa93 /src/libutil/util.hh
parentc6184dec6c208d39a329586d0503b7a51bc2ded1 (diff)
Use /proc/self/fd to efficiently close all FDs on Linux
Issue #1506.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 7ea32e8d9..f37f2c5d1 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -261,8 +261,8 @@ public:
list of strings. */
std::vector<char *> stringsToCharPtrs(const Strings & ss);
-/* Close all file descriptors except stdin, stdout, stderr, and those
- listed in the given set. Good practice in child processes. */
+/* Close all file descriptors except those listed in the given set.
+ Good practice in child processes. */
void closeMostFDs(const set<int> & exceptions);
/* Set the close-on-exec flag for the given file descriptor. */