On Fri, 17 Jul 2026 15:46:28 +1000
David Gibson
Stefano, you called it correctly. While working on bug 215, as usual, I found a bunch of adjacent things to clean up.
I did start by attempting the appoach you suggested for bug 215 - remembering which of the low fds were standard streams and avoiding closing them in __daemon(). It is indeed shorter, but only by 1-2 lines. Looking at possible interactions with other things, I became more and more convinced that leaving anything other than the standard streams in fds 0-2 was an accident waiting to happen. Much of the rest of the series is, for example, dealing with the possibility of --fd [012].
v2: * No longer fold fd closing into isolate_initial() * Some minor polish * Various improved comments and commit messages
Applied. -- Stefano