compositor-drm: Close drm fd on exec

dev
Kristian Høgsberg 14 years ago
parent 12b0bb343b
commit 9cd7aca0e0
  1. 2
      compositor/compositor-drm.c

@ -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…
Cancel
Save