opens files without CLOEXEC
Submitted by Christian Persch (GNOME)
Assigned to Chris Wilson @ickle
Link to original bug (#107596)
Description
Created attachment 141149 patch
Cairo opens files without O_CLOEXEC.
The attached patch fixes this in all places in the library only; I didn't change the utils etc.
The "e" mode for fopen() is a GNU extension, and I don't know if it's supported more widely (or at least ignored on other platforms that don't support it), so I made it used only on GLIBC.
Patch 141149, "patch":
cairo-cloexec.patch