commit | d5625de8ce3fc31608248fe14b12c4c7d1a43593 | [log] [tgz] |
---|---|---|
author | Christian Persch <chpe@src.gnome.org> | Thu Jan 03 21:11:49 2019 +0100 |
committer | Christian Persch <chpe@src.gnome.org> | Thu Jan 03 21:11:49 2019 +0100 |
tree | 0360c9f11b9f9e4655d3de321decc5feb56a4642 | |
parent | 4a3eef323d72b06780c318f58917f884eecc812e [diff] |
gfile: Open files with CLOEXEC flag set First try to atomically open the file using O_CLOEXEC for open() and the "e" mode for fopen(), and if that doesn't work or O_CLOEXEC isn't defined, fall back to opening the file first and applying the FD_CLOEXEC flag afterwards.