Re: old driver

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 29 Mar 1999 09:57:31 +0100 (BST)


> if (current->signal & ~current->blocked)
> return temp - buf ? : -EINTR;
>
> current->state = TASK_INTERRUPTIBLE;
> current->timeout = jiffies + read_sleep;
> schedule();

if(signal_pending(current))
return ....

current->state = TASK_INTERRUPTIBLE;
schedule_timeout(read_sleep);

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/