summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 09:43:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 09:43:40 +0000
commitc034fce5cef74af6d1178eba4bec536e1fa70728 (patch)
tree59a30aa12effd3566e8c308012fd90dffc2b08f0 /win32
parentf425798fdaca165c200091faf976c3cf9a52637d (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
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;