>From 91f35f479bec1d2a71630cf2dc5754bedcaeac34 Mon Sep 17 00:00:00 2001
From: Mike McCormack <mj.mccorm...@samsung.com>
Date: Wed, 15 Dec 2010 12:25:14 +0900
Subject: [PATCH 1/2] Zero is a valid fd

---
 trunk/ecore/src/lib/ecore_fb/ecore_fb_kbd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/trunk/ecore/src/lib/ecore_fb/ecore_fb_kbd.c b/trunk/ecore/src/lib/ecore_fb/ecore_fb_kbd.c
index 5d2a6a6..8dcd29d 100644
--- a/trunk/ecore/src/lib/ecore_fb/ecore_fb_kbd.c
+++ b/trunk/ecore/src/lib/ecore_fb/ecore_fb_kbd.c
@@ -121,7 +121,7 @@ static const char *_ecore_fb_btn_syms[128] =
      "0x7e", 
      "0x7f"
 };
-static int _ecore_fb_kbd_fd = 0;
+static int _ecore_fb_kbd_fd = -1;
 static int _ecore_fb_ctrl = 0;
 static int _ecore_fb_alt = 0;
 static int _ecore_fb_shift = 0;
@@ -296,7 +296,7 @@ ecore_fb_kbd_shutdown(void)
    if (_ecore_fb_kbd_fd_handler_handle) 
       ecore_main_fd_handler_del(_ecore_fb_kbd_fd_handler_handle);
    if (_ecore_fb_kbd_fd >= 0) close(_ecore_fb_kbd_fd);
-   _ecore_fb_kbd_fd = 0;
+   _ecore_fb_kbd_fd = -1;
    _ecore_fb_kbd_fd_handler_handle = NULL;
    _ecore_fb_ctrl = 0;
    _ecore_fb_lock = 0;
-- 
1.7.0.4

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to