bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: portability of fopen and 'e' (O_CLOEXEC) flag


From: Bruno Haible
Subject: Re: portability of fopen and 'e' (O_CLOEXEC) flag
Date: Tue, 26 May 2020 10:18:09 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )

Hi Daiki,

> Thank you for this; would it make sense to use it in the modules that do
> one-shot fopen/fclose, such as read-file?

This would improve things for multithreaded programs that call exec or
posix_spawn. There are not that many programs of this kind. But on the other
hand, multithreading is meant to be a "built-in" functionality nowadays,
and the burden of fopen-gnu is zero on the majority of the modern platforms
and small on the other platforms.

=> I've applied your patch.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]