2008-03-31 Tor Lillqvist <tml@novell.com>
Bug 525192 - 100% CPU if run main loop with no IO sources
* glib/gmain.c (g_poll) [Win32]: Patch by Neil Roberts.
svn path=/trunk/; revision=6787
+2008-03-31 Tor Lillqvist <tml@novell.com>
+
+ Bug 525192 - 100% CPU if run main loop with no IO sources
+
+ * glib/gmain.c (g_poll) [Win32]: Patch by Neil Roberts.
+
2008-03-30 Matthias Clasen <mclasen@redhat.com>
* glib/gtester.c: Don't use ARG_MAX. (#522335, patch by
}
else if (nhandles == 0)
{
- /* Wait for nothing (huh?) */
- return 0;
+ /* No handles to wait for, just the timeout */
+ if (timeout == INFINITE)
+ ready = WAIT_FAILED;
+ else
+ {
+ Sleep (timeout);
+ ready = WAIT_TIMEOUT;
+ }
}
else
{