Richard B. Johnson wrote:
> On Linux 2.3.41 (haven't checked others) when the PID wraps past
> 32,767 the next PID is 300. It is not the next-available low one.
Look at linux-2.3.41/kernel/fork.c:get_pid():
if((++last_pid) & 0xffff8000) {
last_pid = 300; /* Skip daemons etc. */
goto inside;
}
The only reason that comes into my mind is that you want to have
your daemons (more exactly: procs started at system startup) to show
up in the first lines of a ps output sorted by PID...
Thomas.
-
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/
This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:32 EST