raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2a2da5254c8905922f4fe0840e855e3508846be8

commit 2a2da5254c8905922f4fe0840e855e3508846be8
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Jul 20 14:32:12 2020 +0100

    win - x io errors really just have to exit, so call the iorr cb + exit
    
    from xlib man page:
    
    The XSetIOErrorHandler sets the fatal I/O error  handler. Xlib  calls
    the  program's  supplied error handler if any sort of system call error
    occurs (for example, the connection to the server was lost). This  is
    assumed  to be a fatal condition, and the called routine should not re‐
    turn.  If the I/O error handler does return, the client process exits.
    
    @fix
---
 src/lib/elementary/efl_ui_win.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index ab84ac590e..1b6f4deac5 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -4992,7 +4992,8 @@ _elm_x_io_err(void *data EINA_UNUSED)
 
    EINA_LIST_FOREACH(_elm_win_list, l, obj)
      evas_object_smart_callback_call(obj, "ioerr", NULL);
-   elm_exit();
+   fprintf(stderr, "X I/O Error - fatal. Exiting\n");
+   exit(101);
 }
 #endif
 

-- 


Reply via email to