summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
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 a8409e4ce51..37299174fb1 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;
}