Re: [patch] sys_epoll ...

From: Davide Libenzi (davidel@xmailserver.org)
Date: Sun Oct 20 2002 - 20:54:34 EST


On Sun, 20 Oct 2002, Andrew Morton wrote:

> + if (ep->eventcnt || !timeout)
> + break;
> + if (signal_pending(current)) {
> + res = -EINTR;
> + break;
> + }
> +
> + set_current_state(TASK_INTERRUPTIBLE);
> +
> + write_unlock_irqrestore(&ep->lock, flags);
> + timeout = schedule_timeout(timeout);
>
> You should set current->state before performing the checks.

Why this Andrew ?

- Davide

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



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:51 EST