而linux手册指出:Ç - 选择() - 如何更新计时器正确
The operation of select() and pselect() is identical, other than these
three differences:
(i) ...
(ii) select() may update the timeout argument to indicate how much time
was left. pselect() does not change this argument.
(iii) ...
它说,你可以更新,但我怎么能做到这一点? 我再次调用select(),使用相同的参数?
这是一个linuxism:Linux总是有一个更新结构时间戳的非标准特性。其他unices没有这样做,它不在POSIX,IIRC。 – wildplasser 2013-03-13 19:59:19