Commit 85b16b9e authored by Ell's avatar Ell

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
4969d757.
parent cb51ea98
......@@ -475,6 +475,8 @@ gui_wait_input_async (GimpAsync *async,
while (read (input_pipe[0], buffer, sizeof (buffer)) == -1 &&
errno == EINTR);
gimp_async_finish (async, NULL);
}
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