[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PID_MAX (was console hangs, but machine still up)
> I did see that once, as I recall. PID in the 30,000's.
>
> 98573 is more than a little bogus, PID_MAX is defined in
> <sys/proc.h> as 30000, yet I have may many PIDs higher than
> this:
> [snip]
> Something's not right in the process allocation world, methinks.
>
> Looking at sys/kern/kern_fork.c, around line 150, the spaghetti
> gets the better of me. Somewhere a check for PID_MAX isn't
> working correctly, apparently.
PID_MAX has been updated a few times lately. The first modification
change the PID_MAX value to 99999, then moved to 65535, and finally
to the actual value, 32766.
Nothing is wrong there. Just need to recompile your kernel.
Federico.-
--
Let the programmers be many and the managers Federico G. Schwindt
few -- then all will be productive. fgsch@openbsd.org