Commit 760fd430 authored by Po Lu's avatar Po Lu
Browse files

Fix rare crash when async input happens while creating xm drag window

* src/xterm.c (xm_get_drag_window): Work around XCloseDisplay
freezing upon being interrupted by a signal.
parent da274d73
Pipeline #18245 failed with stages
in 75 minutes and 44 seconds
......@@ -1744,7 +1744,12 @@ xm_get_drag_window (struct x_display_info *dpyinfo)
(unsigned char *) &drag_window, 1);
/* FIXME: why does XCloseDisplay hang if SIGIO arrives and there
are multiple displays? */
unrequest_sigio ();
XCloseDisplay (temp_display);
request_sigio ();
XSetErrorHandler (old_handler);
XSetIOErrorHandler (old_io_handler);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment