Messages in this thread |  | | Date | Tue, 11 May 1999 03:26:32 +0200 (CEST) | | From | Andrea Arcangeli <> | | Subject | Re: [patch] wake_one for accept(2) [was Re: Overscheduling DOES happen with high web server load.] |
| |
On Tue, 11 May 1999, David S. Miller wrote:
>Andrea, watch out! The presedence rules of C have bitten you here.
It seems that it's a bit too late to write this but I'll try anyway...
>You want: > > + if ((t->state & TASK_INTERRUPTIBLE) && signal_pending(t))
I written this proggy to check the issue:
main() { if (1 & 2 && 1) printf("ciao\n"); }
(1 & 2) && 1 = 0 && 1 = 0 -> no print ciao infact
if it would been:
1 & (2 && 1) = 1 & 1 = 1 -> should print "ciao" according to you but it doesn't.
What am I missing?
Andrea Arcangeli
- 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/
|  |