On Fri, Oct 22, 2021 at 1:15 AM Martin Liška <mli...@suse.cz> wrote: > > On 10/21/21 20:15, Ian Lance Taylor wrote: > > On Thu, Oct 21, 2021 at 12:48 AM Martin Liška <mli...@suse.cz> wrote: > >> > >> The patch is about sensitive handling of file descriptors opened > >> by make's jobserver. > > > > Thanks. I think a better approach would be, at the start of main, > > fstat the descriptors up to 10 and record the ones for which fstat > > succeeds. Then at the end of main only check the descriptors for > > which fstat failed earlier. > > Sure, makes sense. > > > > > I can work on that at some point if you don't want to tackle it. > > I've just done that in the attached patch. > > Is it fine?
This is OK. Thanks. Ian