mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
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:
parent
1fc61ca55f
commit
133ff3421a
10 changed files with 162 additions and 138 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue