Commit 397bbb29 authored by Ell's avatar Ell
Browse files

app: fix gimp_wait() deadlock

In the GUI implementation of gimp_wait(), explicitly finish the
input-pipe async operation after the busy-dialog plug-in
terminates, to avoid the async callback function from being
repeatedly called, stalling the main thread.  Previously, this code
relied on gimp-parallel implicitly aborting the async operation,
but this is no longer the case since commit

(cherry picked from commit 85b16b9e)
parent 8c91206d
...@@ -468,6 +468,8 @@ gui_wait_input_async (GimpAsync *async, ...@@ -468,6 +468,8 @@ gui_wait_input_async (GimpAsync *async,
while (read (input_pipe[0], buffer, sizeof (buffer)) == -1 && while (read (input_pipe[0], buffer, sizeof (buffer)) == -1 &&
errno == EINTR); errno == EINTR);
gimp_async_finish (async, NULL);
} }
static gboolean static gboolean
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