Date: Wed, 15 Aug 2012 17:32:03 -0400 From: Dan Plassche <dplassche@gmail.com> To: Julian Elischer <julian@freebsd.org> Cc: Konstantin Belousov <kostikbel@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: FreeBSD 1.x Binaries Work Except under Chroot Message-ID: <CAOD8YqpFeSqaMX-j%2Bz4MDB-MnN_HKw9sapJqG0hhDAp9sydxcw@mail.gmail.com> In-Reply-To: <5029A9CE.8070307@freebsd.org> References: <CAOD8YqpVzT0pdBCHaMcu2krpjHcP3eotyDtiBR7OzUK1E9Hi5g@mail.gmail.com> <20120810170715.GI2425@deviant.kiev.zoral.com.ua> <CAOD8Yqpz89-bxN7vpsyNWisr7eMDjcbvTSfknvG6M_jZFOW-yQ@mail.gmail.com> <20120811184522.GK2425@deviant.kiev.zoral.com.ua> <CAOD8YqqNpY33t450jovcJRRf6BGffPCyO%2BF4LB0N_SbhZJd-0g@mail.gmail.com> <5029A9CE.8070307@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 13, 2012 at 9:28 PM, Julian Elischer <julian@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOD8YqpFeSqaMX-j%2Bz4MDB-MnN_HKw9sapJqG0hhDAp9sydxcw>