From fd99b80a17329acfbfb8e61849d50938378428d2 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Wed, 8 Sep 2010 21:43:27 +0000
Subject: [PATCH] for real fixed deadlock issue

---
 src/sview/common.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/sview/common.c b/src/sview/common.c
index b39f1c78f64..9f38847c79a 100644
--- a/src/sview/common.c
+++ b/src/sview/common.c
@@ -1746,12 +1746,14 @@ extern void *popup_thr(popup_info_t *popup_win)
 	}
 	/* this will switch to 0 when popup is closed. */
 	popup_win->running = &running;
-	/* when popup is killed toggled will be set to -1 */
+	/* when popup is killed running will be set to 0 */
 	while(running) {
 		//g_print("locked popup_thr\n");
 		gdk_threads_enter();
-		if(!running)
+		if(!running) {
+			gdk_threads_leave();
 			break;
+		}
 		(specifc_info)(popup_win);
 		//gdk_flush();
 		gdk_threads_leave();
-- 
GitLab