compositor-drm: Close drm fd on exec
This commit is contained in:
@@ -138,7 +138,7 @@ init_egl(struct drm_compositor *ec, struct udev_device *device)
|
|||||||
};
|
};
|
||||||
|
|
||||||
filename = udev_device_get_devnode(device);
|
filename = udev_device_get_devnode(device);
|
||||||
fd = open(filename, O_RDWR);
|
fd = open(filename, O_RDWR, O_CLOEXEC);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
/* Probably permissions error */
|
/* Probably permissions error */
|
||||||
fprintf(stderr, "couldn't open %s, skipping\n",
|
fprintf(stderr, "couldn't open %s, skipping\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user