summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-10-20 19:41:57 +0200
committerJulian Andres Klode <jak@debian.org>2025-10-20 19:42:57 +0200
commitcb8df17ff8e59192ae2ab864006eea120d408a7a (patch)
tree0a6bd49277e794010b90ba77e219ebebec706c00 /apt-pkg
parent683214eed4aced71f94f12a0cc70509bdb473c82 (diff)
Add some comments and tests around Keep-Fd ordering
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc1
1 files changed, 1 insertions, 0 deletions
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<int> KeepFDs)
{
// Fork off the process