[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: FreeBSD 1.x Binaries Work Except under Chroot
From:       Dan Plassche <dplassche () gmail ! com>
Date:       2012-08-20 22:11:24
Message-ID: CAOD8Yqrz790nTev20iP_eRfdRWHzsnHbpwbzYAORAe1vm+pMLg () mail ! gmail ! com
[Download RAW message or body]

On Thu, Aug 16, 2012 at 9:06 AM, Konstantin Belousov
<kostikbel@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))
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic