Improve fix for #525192 below: Use SleepEx() so that the sleep is

2008-03-31  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_poll): Improve fix for #525192 below: Use
	SleepEx() so that the sleep is alertable. Thanks to John
	Ehresman.


svn path=/trunk/; revision=6794
This commit is contained in:
Tor Lillqvist 2008-03-31 18:05:47 +00:00 committed by Tor Lillqvist
parent befae6688e
commit d8fa7b34d2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-03-31 Tor Lillqvist <tml@novell.com>
* glib/gmain.c (g_poll): Improve fix for #525192 below: Use
SleepEx() so that the sleep is alertable. Thanks to John
Ehresman.
2008-03-31 Tor Lillqvist <tml@novell.com>
* glib/gwin32.c

View File

@ -388,7 +388,7 @@ g_poll (GPollFD *fds,
ready = WAIT_FAILED;
else
{
Sleep (timeout);
SleepEx (timeout, TRUE);
ready = WAIT_TIMEOUT;
}
}