From 9ab8380ff217cf6162ef4be7a473bb7a34b4d104 Mon Sep 17 00:00:00 2001 From: Arx Cruz Date: Fri, 8 Jul 2011 11:57:18 -0300 Subject: [PATCH] Fix for bug #540489 and #501001 both related to 100% use of cpu. --- src/tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tree.c b/src/tree.c index b0ff4c5..cdc1599 100644 --- a/src/tree.c +++ b/src/tree.c @@ -130,6 +130,9 @@ zenity_tree_handle_stdin (GIOChannel *channel, while (gtk_events_pending ()) gtk_main_iteration (); + // TODO: Find a better way to avoid 100% cpu utilization + g_usleep(10000); + } while (status == G_IO_STATUS_AGAIN); if (status != G_IO_STATUS_NORMAL) {