compositor-drm: Close drm fd on exec

This commit is contained in:
Kristian Høgsberg 2011-04-11 13:19:16 -04:00
parent 12b0bb343b
commit 9cd7aca0e0

View File

@ -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",