ecore: add ecore_main_fd_handler_file_add() handlers to file handler list
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 31 Mar 2016 17:27:29 +0000 (13:27 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 31 Mar 2016 17:28:50 +0000 (13:28 -0400)
broken in a bad refactoring patch, resulting in this function having no effect
whatsoever

ref 9281fb5537546f309db1326754d231abf2578c16

@fix

src/lib/ecore/ecore_main.c

index 8175e63..dd7c64f 100644 (file)
@@ -1389,6 +1389,8 @@ _ecore_main_fd_handler_add(int                    fd,
    if (buf_func)
      fd_handlers_with_buffer = eina_list_append(fd_handlers_with_buffer, fdh);
    fdh->buf_data = (void *)buf_data;
+   if (is_file)
+     file_fd_handlers = eina_list_append(file_fd_handlers, fdh);
    fd_handlers = (Ecore_Fd_Handler *)
      eina_inlist_append(EINA_INLIST_GET(fd_handlers),
                         EINA_INLIST_GET(fdh));