From af765a8eab288eb638100e027b97a1d15e4e3026 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Aug 2017 16:22:05 +0200 Subject: Use /proc/self/fd to efficiently close all FDs on Linux Issue #1506. --- src/libutil/util.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 7ea32e8d9f..f37f2c5d1b 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -261,8 +261,8 @@ public: list of strings. */ std::vector 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 & exceptions); /* Set the close-on-exec flag for the given file descriptor. */ -- cgit 1.4.1