Re: Bug in test-fcntl.c

2021-05-10 Thread Nicholas Gaya
more robust, with minimal drawbacks. > On May 9, 2021, at 5:24 AM, Bruno Haible wrote: > > Nicholas Gaya wrote: >> it seems like the test process inherits a lot of open files from its parent, >> as the actual fd returned by fcntl is 67. > > That seems excessive. Wha

Re: Bug in test-fcntl.c

2021-05-08 Thread Nicholas Gaya
fcntl is 67. Closing fd 10 is a good suggestion, as it's simpler than having to convert the fd to/from a string to pass it to the child process. I updated the patch file with this approach. > On May 8, 2021, at 7:03 PM, Bruno Haible wrote: > > Hi, > > Nicholas Gaya wrot

Bug in test-fcntl.c

2021-05-08 Thread Nicholas Gaya
ument to the child process. Please see this proposed patch for details: https://gist.github.com/nickgaya/2a70ebdce8c020481d3e5b6c3696fe7b Best, Nicholas Gaya