Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!ames!killer!rpp386!spdyne!root From: root@spdyne.UUCP Newsgroups: comp.unix.wizards Subject: Re: pid rollover? Message-ID: <1800007@spdyne> Date: 29 Jan 89 23:07:00 GMT References: <460@oglvee.UUCP> Lines: 21 Nf-ID: #R:oglvee.UUCP:460:spdyne:1800007:004:607 Nf-From: spdyne.UUCP!root Jan 29 17:07:00 1989 In article <460@oglvee.UUCP> jr@oglvee.UUCP (Jim Rosenberg) writes: >.... However we seem to be hitting rollover >of pids at 32K, implying that the kernel must be using short as the type of a >pid -- at least internally. And John F. Haugh II (jfh@rpp386.Dallas.TX.US) Writes: >I can't answer for the EXACT reason this was done this way, but can explain >the behaviour better. >For starters, PID's roll over at 30000 exactly. The code goes something >like > > if (nextpid == 30000) > nextpid = 1; I belive that it sets nextpid to 100, at least it did on our BSD system. -Chert Pellett root@spdyne