From owner-freebsd-questions Mon Mar 11 13:58:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 4377737B428 for ; Mon, 11 Mar 2002 13:58:20 -0800 (PST) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.12.2/8.12.2) with ESMTP id g2BLwI1v061385; Mon, 11 Mar 2002 15:58:19 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.2/Submit) id g2BLwIWV061384; Mon, 11 Mar 2002 15:58:18 -0600 (CST) Date: Mon, 11 Mar 2002 15:58:18 -0600 From: Dan Nelson To: Greg Quinlan Cc: FreeBSD-Questions@FreeBSD.ORG Subject: Re: Limit PID Count? Message-ID: <20020311215817.GG59137@dan.emsphone.com> References: <20020311214828.86070.qmail@web13304.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020311214828.86070.qmail@web13304.mail.yahoo.com> User-Agent: Mutt/1.3.27i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Mar 11), Greg Quinlan said: > Hi All, > > Is there an easy way of limiting the system wide PID count? > > I have an application with uses a maximum PID of 32768 (short int > pid;) and can not be changed! > > I need to keep it below this value. > > The application is a SCO UNIX app' running under IBCS2 emulation. Edit /sys/sys/proc.h, change #define PID_MAX 99999 #define NO_PID 100000 to 32767 and 32768, rebuild your kernel, and reboot. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message