Bug 46596

Summary: Set close on exec flag FD_CLOEXEC
Product: Mesa Reporter: David Fries <david>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Set O_CLOEXEC flag or FD_CLOEXEC for opened fds

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.