Skip to content
Commit 37ca797d authored by Jussi Kivilinna's avatar Jussi Kivilinna Committed by Gregory Nutt
Browse files

vfs/poll: round timeout up to next full tick. Calling poll() with timeout...

vfs/poll: round timeout up to next full tick.  Calling poll() with timeout less than half tick (thus MSEC2TICK(timeout) => 0) caused returning error with EAGAIN. Instead of rounding timeout down, value should be rounded up. Open Group spec for poll says:  "Implementations may place limitations on the granularity of timeout intervals. If the requested timeout interval requires a finer granularity than the implementation supports, the actual timeout interval will be rounded up to the next supported value."
parent 9431fb1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment