Re: [PATCH] Handle jobserver file descriptors in btest.

2021-10-22 Thread Ian Lance Taylor via Gcc-patches
On Fri, Oct 22, 2021 at 1:15 AM Martin Liška wrote: > > On 10/21/21 20:15, Ian Lance Taylor wrote: > > On Thu, Oct 21, 2021 at 12:48 AM Martin Liška wrote: > >> > >> The patch is about sensitive handling of file descriptors opened > >> by make's jobserver. > > > > Thanks. I think a better approa

Re: [PATCH] Handle jobserver file descriptors in btest.

2021-10-22 Thread Martin Liška
On 10/21/21 20:15, Ian Lance Taylor wrote: On Thu, Oct 21, 2021 at 12:48 AM Martin Liška 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 t

Re: [PATCH] Handle jobserver file descriptors in btest.

2021-10-21 Thread Ian Lance Taylor via Gcc-patches
On Thu, Oct 21, 2021 at 12:48 AM Martin Liška 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