Re: [patch] wake_one for accept(2) [was Re: Overscheduling DOES happen

David S. Miller (davem@redhat.com)
Tue, 11 May 1999 00:58:46 -0700


Date: Tue, 11 May 1999 02:24:28 +0200 (CEST)
From: Andrea Arcangeli <andrea@e-mind.com>

- if (t->state == TASK_INTERRUPTIBLE && signal_pending(t))
+ if (t->state & TASK_INTERRUPTIBLE && signal_pending(t))

Andrea, watch out! The presedence rules of C have bitten you here.

You want:

+ if ((t->state & TASK_INTERRUPTIBLE) && signal_pending(t))

Later,
David S. Miller
davem@redhat.com

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