FreeBSD 1.x Binaries Work Except under Chroot

Dan Plassche dplassche at gmail.com
Mon Aug 20 22:11:33 UTC 2012


On Thu, Aug 16, 2012 at 9:06 AM, Konstantin Belousov
<kostikbel at gmail.com> wrote:

> Since you did not provided exact diff of your change, I cannot comment
> on what goes wrong. Anyway, just merge the r239301 locally and use
> sysctl kern.pid_max.

Thanks, the kern.pid_max tunable works well on 8.2.

The diff to /usr/src/sys/sys/proc.h before merging in r239301 was
editing PID_MAX:

     --- proc.h.bak	2010-12-21 12:09:25.000000000 -0500
     +++ proc.h	2012-08-15 13:54:25.000000000 -0400
     @@ -667,7 +667,7 @@
       * We use process IDs <= PID_MAX; PID_MAX + 1 must also fit in a pid_t,
       * as it is used to represent "no process group".
       */
     -#define	PID_MAX		99999
     +define PID_MAX		30000
      #define	NO_PID		100000

      #define	SESS_LEADER(p)	((p)->p_session->s_leader == (p))


More information about the freebsd-hackers mailing list