• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/gbm_gralloc


Commit MetaInfo

Revision46983bb206e40b223a978ef756204b92db260d44 (tree)
Time2016-12-14 00:43:49
AuthorEmil Velikov <emil.l.velikov@gmai...>
CommiterRob Herring

Log Message

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.

Change Summary

Incremental Difference

--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -233,7 +233,7 @@ struct gbm_device *gbm_dev_create(void)
233233 int fd;
234234
235235 property_get("gralloc.gbm.device", path, "/dev/dri/renderD128");
236- fd = open(path, O_RDWR);
236+ fd = open(path, O_RDWR | O_CLOEXEC);
237237 if (fd < 0) {
238238 ALOGE("failed to open %s", path);
239239 return NULL;