Re: old driver

Krzysztof G. Baranowski (kgb@manjak.knm.org.pl)
Mon, 29 Mar 1999 09:56:11 +0200 (EEST)


On Mon, 29 Mar 1999, Daniel Drotos wrote:
> if (current->signal & ~current->blocked)
> return temp - buf ? : -EINTR;
if (signal_pending(current))
return temp - buf ? : -EINTR;

> current->state = TASK_INTERRUPTIBLE;
> current->timeout = jiffies + read_sleep;
> schedule();
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(read_sleep);

Kris

-
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/