select timeout
#1624
Replies: 1 comment
-
I would suspect this is by accident. Looking at some of the source at https://github.com/jbruchon/elks/blob/master/elks/fs/select.c#L228 shows that updating the We should probably update the timeout variable and consider this a bug.
I'll look further into this and comment after reading |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that the current select implementation does not update the timeout to the remaining value before returning. Yet doing so is the standard Linux behavior, and might make some userspace implementations more efficient. For example, the current libc sleep(3) has to call gettimeofday twice to discover the remaining time, and that is less efficient and less accurate than if the kernel just returned the value.
So my question is: Is it by design or by accident that select does not update the timeout?
Beta Was this translation helpful? Give feedback.
All reactions