[PATCH weston 05/11] compositor-fbdev: Close fd used for re-enabling if that fails
Rob Bradford
robert.bradford at intel.com
Fri Jul 26 08:29:39 PDT 2013
From: Rob Bradford <rob at linux.intel.com>
The device will be opened again in fbdev_output_create().
---
src/compositor-fbdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c
index 36631f3..10ba7db 100644
--- a/src/compositor-fbdev.c
+++ b/src/compositor-fbdev.c
@@ -695,6 +695,8 @@ fbdev_output_reenable(struct fbdev_compositor *compositor,
"Attempting to re-open output anyway.\n");
}
+ close(fb_fd);
+
/* Remove and re-add the output so that resources depending on
* the frame buffer X/Y resolution (such as the shadow buffer)
* are re-initialised. */
--
1.8.3.1
More information about the wayland-devel
mailing list