On Wed, May 27, 2020, 11:44 Bruno Haible <bruno@clisp.org> wrote:
The gnulib module 'open' supports O_CLOEXEC since 2017-08-14. We can use it
to make multithreaded application that call fork() and exec() more robust.

Here are proposed patches.

How about module 'fts'? Should the directory fds that it allocates also be
made O_CLOEXEC?

Good idea. Thanks for all the improvements.