2000-05-17

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-05-17 04:38:19 +00:00
parent 1fc61ca55f
commit 133ff3421a
10 changed files with 162 additions and 138 deletions

View file

@ -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;
}