On Wed, Dec 17, 2014 at 12:55 AM, Mages Simon
<[email protected]> wrote:
> if BIOCGRTIMEOUT is set, we should wait for the timeout and not just
> set EWOULDBLOCK. From my point of view the whole 'if' is unnecessary.
>
> If the User doesn't set a timeout we have to wait anyway with tsleep()
> and loop again. Well, and if the timeout is set, we should tsleep()
> for the set timeout.

No, that's wrong.  This is inside a while() loop; if that loop's
condition holds, do you want to sleep for the original length of time
(again) or only for the remaining time?


Philip Guenther

Reply via email to