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