summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 04:38:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 04:38:19 +0000
commit133ff3421a9867ec49a23df97aba3db63fc78755 (patch)
tree881e313831cafec35bfc80a3b2f15f1b98426853 /process.c
parent1fc61ca55fd736dbe63c37abde8239601ce3b2aa (diff)
2000-05-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index a8409e4..3729917 100644
--- a/process.c
+++ b/process.c
@@ -93,14 +93,14 @@ rb_waitpid(pid, flags, st)
#endif
if (result < 0) {
if (errno == EINTR) {
- rb_thread_schedule();
+ rb_thread_polling();
goto retry;
}
return -1;
}
if (result == 0) {
if (oflags & WNOHANG) return 0;
- rb_thread_schedule();
+ rb_thread_polling();
if (rb_thread_alone()) flags = oflags;
goto retry;
}