At 08:55 AM 3/3/99 +0100, Balazs Nagy wrote:
>On Wed, 3 Mar 1999, Anand Buddhdev wrote:
>
>> On Tue, Mar 02, 1999 at 05:43:52PM -0800, Tracy R Reed wrote:
>>
>> AFAIK, it's something about the concurrency variable being 8 bits long, and
>> 8 bits allow 256 possible values (from 0-255).
>
>there's in auto_spawn.c:
>
>int auto_spawn = 255;
>
>AFAIK int isn't 8 bits long. BTW I had asked it a day or two before.
True.
However I think qmail-send get concurrency[remote|local] back from
qmail-[r|l]spawn as a char that is then cast into an int.
char is 8 bit long.
Here is the code:
r = read(chanfdin[c],&ch,1);
while ((r == -1) && (errno == error_intr));
if (r < 1)
{ log1("alert: cannot start: hath the daemon spawn no fire?\n");
_exit(111)
; }
u = (unsigned int) (unsigned char) ch;
if (concurrency[c] > u) concurrency[c] = u;
numjobs += concurrency[c];
David.