summaryrefslogtreecommitdiffstats
path: root/src/loader
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2019-02-19 15:30:39 +0000
committerEmil Velikov <[email protected]>2019-02-26 11:07:23 +0000
commit02344fe80bcbca537d26b2101c7873f9793e3476 (patch)
tree4c12269e184af72439e5aa02276fa28df9690af3 /src/loader
parentf0a7b463b5586972f4b7f5d9d84eb0564087ce3f (diff)
loader: use loader_open_device() to handle O_CLOEXEC
Some platforms lack O_CLOEXEC. The loader_open_device() handles those appropriately, so use the helper. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 0f799c14fd8..3112af4be60 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -137,7 +137,7 @@ loader_open_render_node(const char *name)
(device->bustype == DRM_BUS_PLATFORM)) {
drmVersionPtr version;
- fd = open(device->nodes[DRM_NODE_RENDER], O_RDWR | O_CLOEXEC);
+ fd = loader_open_device(device->nodes[DRM_NODE_RENDER]);
if (fd < 0)
continue;