Bug 46596 - Set close on exec flag FD_CLOEXEC
Summary: Set close on exec flag FD_CLOEXEC
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-24 17:21 UTC by David Fries
Modified: 2012-03-11 14:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Set O_CLOEXEC flag or FD_CLOEXEC for opened fds (6.66 KB, patch)
2012-02-24 17:21 UTC, David Fries
Details | Splinter Review

Description David Fries 2012-02-24 17:21:48 UTC
Created attachment 57614 [details] [review]
Set O_CLOEXEC flag or FD_CLOEXEC for opened fds

Mesa should set all the fds it opens with the O_CLOEXEC (or FD_CLOEXEC flag) to avoid leaking dri resources on the X/kernel side.  I inclosed a patch to address this issue.
Comment 1 David Fries 2012-03-11 14:43:16 UTC
Patch included as b60120608f6ddf4098bc324363197c979ee04cb7
Author: David Fries <David@Fries.net>  2011-12-10 11:28:45
Committer: Dave Airlie <airlied@redhat.com>  2012-03-11 14:05:50


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.