Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2002 15:58:18 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Greg Quinlan <gwq_uk@yahoo.com>
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: Limit PID Count?
Message-ID:  <20020311215817.GG59137@dan.emsphone.com>
In-Reply-To: <20020311214828.86070.qmail@web13304.mail.yahoo.com>
References:  <20020311214828.86070.qmail@web13304.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020311215817.GG59137>