On Thu, Jan 8, 2015 at 1:16 AM, Fam Zheng wrote:
> + if (!timeout || (timeout->tv_nsec == 0 && timeout->tv_sec == 0)) {
..
> + } else if (timeout->tv_nsec >= 0 && timeout->tv_sec >= 0) {
the check for tv_nsec is not enough, which points
to the fragility of passing user timespec around
In preparation of epoll_pwait1, this allows sharing code with coming new
syscall. The new functions use timespec for timeout.
Signed-off-by: Fam Zheng
---
fs/eventpoll.c | 136 +
1 file changed, 70 insertions(+), 66 deletions(-)
diff --git
2 matches
Mail list logo