Bug 107596 - opens files without CLOEXEC
Summary: opens files without CLOEXEC
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 20:13 UTC by Christian Persch (GNOME)
Modified: 2018-08-25 13:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch (4.84 KB, patch)
2018-08-16 20:13 UTC, Christian Persch (GNOME)
Details | Splinter Review

Description Christian Persch (GNOME) 2018-08-16 20:13:09 UTC
Created attachment 141149 [details] [review]
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.
Comment 1 GitLab Migration User 2018-08-25 13:49:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/213.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.