<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/test/integration/test-close-range, branch main</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=main</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2025-10-20T18:06:50Z</updated>
<entry>
<title>ExecFork: Simplify closing and make it safe</title>
<updated>2025-10-20T18:06:50Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2025-10-20T18:02:17Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=3dea3434bf2003b757d7ecdb5a8194c8a0c7023f'/>
<id>urn:sha1:3dea3434bf2003b757d7ecdb5a8194c8a0c7023f</id>
<content type='text'>
Implement a wrapper around FD_CLOEXEC and use it in place of
the raw fcntl(). This wrapper _Exit()s the child if the operation
failed.

Restructure the close_range() handling to simply mark all fds for
closing first and then "reopen" the ones we should keep.
</content>
</entry>
<entry>
<title>Add some comments and tests around Keep-Fd ordering</title>
<updated>2025-10-20T17:42:57Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2025-10-20T17:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=cb8df17ff8e59192ae2ab864006eea120d408a7a'/>
<id>urn:sha1:cb8df17ff8e59192ae2ab864006eea120d408a7a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ExecFork: Use close_range() if available</title>
<updated>2025-10-20T15:16:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2025-10-20T15:14:31Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=6aca3716f051b5b6bff63d51fff68b9c7ebc7474'/>
<id>urn:sha1:6aca3716f051b5b6bff63d51fff68b9c7ebc7474</id>
<content type='text'>
Use close_range() if we have it in preference to iterating
over /proc/self/fd and falling back to closing all possible
fds.

This builds sets of ranges to close that take into account
the APT::Keep-Fds vector, and a test case is provided to
ensure correctness of the splitting logic.

Preference is given to close_range() over /proc as in the
optimal case, this results in a single system call!
</content>
</entry>
</feed>
