external/gbm_gralloc
Revision | 46983bb206e40b223a978ef756204b92db260d44 (tree) |
---|---|
Time | 2016-12-14 00:43:49 |
Author | Emil Velikov <emil.l.velikov@gmai...> |
Commiter | Rob Herring |
Open the device node with O_CLOEXEC
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
Not 100% sure it is supported on Android.
@@ -233,7 +233,7 @@ struct gbm_device *gbm_dev_create(void) | ||
233 | 233 | int fd; |
234 | 234 | |
235 | 235 | property_get("gralloc.gbm.device", path, "/dev/dri/renderD128"); |
236 | - fd = open(path, O_RDWR); | |
236 | + fd = open(path, O_RDWR | O_CLOEXEC); | |
237 | 237 | if (fd < 0) { |
238 | 238 | ALOGE("failed to open %s", path); |
239 | 239 | return NULL; |