From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 15 21:32:05 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E8BC106566B; Wed, 15 Aug 2012 21:32:05 +0000 (UTC) (envelope-from dplassche@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 016168FC15; Wed, 15 Aug 2012 21:32:04 +0000 (UTC) Received: by weyx56 with SMTP id x56so1621186wey.13 for ; Wed, 15 Aug 2012 14:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rVB5uSE5OnkWpXiQ+CC5psLvrvY16fhE2OBVD7vPZng=; b=y1FJs3I4+AigHkUWhM49elONYjQVzSKiwLCjlKAZh3hRH3/cDJBBR0ZDAhgNvv5rOO ylPvqCouCcsV09PeDzHNRyM4cbRmGDhyutmlKmEeK9SM1gCg8HYUvDKZbuPdekGxrcNp 7Klr4qp6LKNT04BJjWonjEFpXLmFXDd/VBtCWN/qNJxdgESeM2FiNu8LilGWJu/0d/H1 /asYuYTcmmpUtrQjqF59PAOU36DPusPuVWInq5V4G8zKp+W7ahtZhmBCnX0SC5gl79bs tE6AESn+L+pGC/xlxGszSQcdo8uMaWmn9PrHHc14fCOiGNg9Mzy4Tc/XU6B4w2bfws1T QdTw== MIME-Version: 1.0 Received: by 10.216.29.10 with SMTP id h10mr10930232wea.126.1345066324087; Wed, 15 Aug 2012 14:32:04 -0700 (PDT) Received: by 10.223.158.7 with HTTP; Wed, 15 Aug 2012 14:32:03 -0700 (PDT) In-Reply-To: <5029A9CE.8070307@freebsd.org> References: <20120810170715.GI2425@deviant.kiev.zoral.com.ua> <20120811184522.GK2425@deviant.kiev.zoral.com.ua> <5029A9CE.8070307@freebsd.org> Date: Wed, 15 Aug 2012 17:32:03 -0400 Message-ID: From: Dan Plassche To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Wed, 15 Aug 2012 22:27:06 +0000 Cc: Konstantin Belousov , freebsd-hackers@freebsd.org Subject: Re: FreeBSD 1.x Binaries Work Except under Chroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2012 21:32:05 -0000 On Mon, Aug 13, 2012 at 9:28 PM, Julian Elischer wrote: > you will also have to change PID_MAX (spelling?) to be 60000 > I have considered making this a tunable.. > If you don't then the shell in the 1.1.5.1 environment will not be able to > handle when a child > get s a pid of > 16 bits and it will not be able to wait on it. so it will > suspend for ever. > teh result is that you can not complete a "make world". The shell hangs as you described on "make world" when the PID hits 32768. Looks like this was the old limit and things changed around release 3. I went to recompile the kernel with "define PID_MAX 30000" in /usr/src/sys/sys/proc.h and got a new build error that I'm still trying to resolve: In file included from /usr/src/sys/sys/buf.h:258, from /usr/src/sys/i386/i386/genassym.c:47: /usr/src/sys/sys/proc.h:670: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PID_MAX' /usr/src/sys/sys/proc.h:769: warning data definition has no type or storage class /usr/src/sys/sys/proc.h:769: warning: type defaults to 'int' in declaration of 'pidhashtbl' *** Error code 1 Line 670 in proc.h is the define PID_MAX line. I have the feeling I may be missing something obvious here, but I haven't been able to sort out the problem. Dan