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