mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (ppoll): typo bug fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
542190ce58
commit
e65e24bd27
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri May 27 08:47:26 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* thread.c (ppoll): typo bug fix.
|
||||
|
||||
Fri May 27 08:35:04 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk.rb: hang-up at exit before calling Tk.mainloop.
|
||||
|
|
4
thread.c
4
thread.c
|
@ -2759,14 +2759,14 @@ int ppoll(struct pollfd *fds, nfds_t nfds,
|
|||
timeout_ms = -1;
|
||||
else {
|
||||
tmp = ts->tv_sec * 1000;
|
||||
tmp2 = tv->tv_nsec / (1000 * 1000);
|
||||
tmp2 = ts->tv_nsec / (1000 * 1000);
|
||||
if (TIMET_MAX - tmp < tmp2)
|
||||
timeout_ms = -1;
|
||||
else
|
||||
timeout_ms = tmp + tmp2;
|
||||
}
|
||||
} else
|
||||
timeout = -1;
|
||||
timeout_ms = -1;
|
||||
|
||||
return poll(fds, nfds, timeout_ms);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue