From d8fa7b34d2ff0ecd8dc9a2c0b585be543bc1c923 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 31 Mar 2008 18:05:47 +0000 Subject: [PATCH] Improve fix for #525192 below: Use SleepEx() so that the sleep is 2008-03-31 Tor Lillqvist * 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 | 6 ++++++ glib/gmain.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0ba3b0f19..3c9f91e05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-31 Tor Lillqvist + + * 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 * glib/gwin32.c diff --git a/glib/gmain.c b/glib/gmain.c index d833efcb8..28292ba31 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -388,7 +388,7 @@ g_poll (GPollFD *fds, ready = WAIT_FAILED; else { - Sleep (timeout); + SleepEx (timeout, TRUE); ready = WAIT_TIMEOUT; } }