Fix for bug #540489 and #501001 both related to 100% use of cpu.

This commit is contained in:
Arx Cruz 2011-07-08 11:57:18 -03:00
parent ab5a721ed5
commit 9ab8380ff2
1 changed files with 3 additions and 0 deletions

View File

@ -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) {