diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 09:43:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 09:43:40 +0000 |
commit | 2d459bb5cefae00541bb47972da8d704b991ba07 (patch) | |
tree | 59a30aa12effd3566e8c308012fd90dffc2b08f0 /win32/win32.c | |
parent | 961f557a7bb0bbaf1cd8271c58cd69cf98166ae2 (diff) | |
download | ruby-2d459bb5cefae00541bb47972da8d704b991ba07.tar.gz ruby-2d459bb5cefae00541bb47972da8d704b991ba07.tar.xz ruby-2d459bb5cefae00541bb47972da8d704b991ba07.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@11862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index 8ff3d6747..5f9cace34 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; |