From c034fce5cef74af6d1178eba4bec536e1fa70728 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 24 Feb 2007 09:43:40 +0000 Subject: * process.c (rb_waitpid_blocking, rb_waitpid): use UBF feature. * thread_win32.ci (rb_w32_wait_events_blocking): blocking version. * win32/win32.c (waitpid): use rb_w32_wait_events_blocking(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 8ff3d67472..5f9cace342 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2936,7 +2936,7 @@ waitpid(rb_pid_t pid, int *stat_loc, int options) return -1; } - ret = rb_w32_wait_events(events, count, timeout); + ret = rb_w32_wait_events_blocking(events, count, timeout); if (ret == WAIT_TIMEOUT) return 0; if ((ret -= WAIT_OBJECT_0) == count) { return -1; @@ -2957,7 +2957,7 @@ waitpid(rb_pid_t pid, int *stat_loc, int options) while (!(pid = poll_child_status(child, stat_loc))) { /* wait... */ - if (rb_w32_wait_events(&child->hProcess, 1, timeout) != WAIT_OBJECT_0) { + if (rb_w32_wait_events_blocking(&child->hProcess, 1, timeout) != WAIT_OBJECT_0) { /* still active */ pid = 0; break; -- cgit v1.2.3