lkml.org 
[lkml]   [1999]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog