Re: "current->timeout == 0" in 2.2.x

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 27 May 1999 17:56:51 +0100 (BST)


> As I understood there is no current->timeout flag anymore.

Correct

> I thought this might not be necessary at all if using
> "interruptible_sleep_on_timeout" instead of "interruptible_sleep_on" but
> this seems to be a wrong assumption.

Interruptible_sleep_on_timeout will sleep for the event or the timer going
off. It returns the new timeout value. So it becomes

timeout=interruptible_sleep_on(&queue);
if(!timeout)
return -...

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/