From cb8df17ff8e59192ae2ab864006eea120d408a7a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 20 Oct 2025 19:41:57 +0200 Subject: Add some comments and tests around Keep-Fd ordering --- apt-pkg/contrib/fileutl.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'apt-pkg/contrib') diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 50b983924..7f785f21c 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -899,6 +899,7 @@ pid_t ExecFork() return ExecFork(KeepFDs); } +// Keep in mind that KeepFDs must be ordered for close_range() to work. pid_t ExecFork(std::set KeepFDs) { // Fork off the process -- cgit v1.2.3-70-g09d2