Improve fix for #525192 below: Use SleepEx() so that the sleep is
authorTor Lillqvist <tml@novell.com>
Mon, 31 Mar 2008 18:05:47 +0000 (18:05 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 31 Mar 2008 18:05:47 +0000 (18:05 +0000)
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

ChangeLog
glib/gmain.c

index 0ba3b0f1923060a40cf72c68f63f1ef3df9fe768..3c9f91e055ed063e0690a315d1069f9aa223b340 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index d833efcb8fb54e2c28277c11c329591b44f29ed1..28292ba316643ab1415818bdee7a7154dc27690b 100644 (file)
@@ -388,7 +388,7 @@ g_poll (GPollFD *fds,
        ready = WAIT_FAILED;
       else
        {
-         Sleep (timeout);
+         SleepEx (timeout, TRUE);
          ready = WAIT_TIMEOUT;
        }
     }