pipe-loader: use loader_open_device() rather than open()

The former handles O_CLOEXEC (and the lack of it) appropriately.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
Emil Velikov 2015-06-29 14:01:39 +01:00
parent 132031b110
commit cc32d25454
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ open_drm_render_node_minor(int minor)
char path[PATH_MAX];
snprintf(path, sizeof(path), DRM_RENDER_NODE_DEV_NAME_FORMAT, DRM_DIR_NAME,
minor);
return open(path, O_RDWR, 0);
return loader_open_device(path);
}
int