From owner-freebsd-questions Mon Jan 31 8:17: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id D755E14BE2 for ; Mon, 31 Jan 2000 08:17:02 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12FHmF-000MPS-00; Mon, 31 Jan 2000 14:26:03 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #1) id 12FHmF-0004V9-00; Mon, 31 Jan 2000 14:26:03 +0000 Date: Mon, 31 Jan 2000 14:26:03 +0000 From: Ben Smithurst To: Ertan Kucukoglu Cc: freebsd-questions@freebsd.org Subject: Re: Process ID Message-ID: <20000131142603.A15990@strontium.scientia.demon.co.uk> References: <389547CD.DD4243A0@ozlerplastik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <389547CD.DD4243A0@ozlerplastik.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ertan Kucukoglu wrote: > I wonder what is the max PID number under FreeBSD. I don't know if the > version is required but, I'm using FreeBSD 3.3 RELEASE. 99998. ben@magnesium:~$ grep PID_MAX /sys/sys/* /sys/sys/proc.h: * We use process IDs <= PID_MAX; PID_MAX + 1 must also fit in a pid_t, /sys/sys/proc.h:#define PID_MAX 99999 The comment isn't quite true -- the pids are < PID_MAX, not <= PID_MAX (unless I'm reading the code in kern_fork.c wrong). -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message