discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b2715d2586e8c948a065583697be6f09d83dbe0c

commit b2715d2586e8c948a065583697be6f09d83dbe0c
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Mar 31 13:15:33 2016 -0500

    wayland: Stop E from consuming all CPU as soon as a selection is made
    
    Clipboard fds from clients are regular files, which shouldn't be passed
    to fd_handler_add.  Using the wrong add function causes epoll to return
    immediately and we end up running idle handlers and burning cpu.
    
    Reviewed-by: Mike Blumenkrantz <zm...@osg.samsung.com>
---
 src/bin/e_comp_wl_data.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 420b784..cd2f1f3 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -937,9 +937,9 @@ e_comp_wl_clipboard_source_create(const char *mime_type, 
uint32_t serial, int fd
    if (fd > 0)
      {
         source->fd_handler =
-          ecore_main_fd_handler_add(fd, ECORE_FD_READ,
-                                    _e_comp_wl_clipboard_source_save,
-                                    e_comp->wl_comp_data, NULL, NULL);
+          ecore_main_fd_handler_file_add(fd, ECORE_FD_READ | ECORE_FD_ERROR,
+                                         _e_comp_wl_clipboard_source_save,
+                                         e_comp->wl_comp_data, NULL, NULL);
         if (!source->fd_handler)
           {
              _mime_types_free(&source->data_source);

-- 


Reply via email to