On Thu, 2006-07-27 at 10:20 +0800, Zhang Le wrote:
> On 7/27/06, Iain Buchanan <[EMAIL PROTECTED]> wrote:
>         Hi all,
>         
>         I know that PID's wrap around if they get to a sufficiently
>         large number
>         - anyone know what that number is?
>         
>         2^16 (65536), or 2^15 (32768)?
>  
> $ cat /proc/sys/kernel/pid_max
> 32768
> 
>         Is it fixed for a particular system / kernel / universe? or
>         even better,
>         is there a #define I can use from one of the system headers? 
>         
> it is defined in kernel/pid.c
> int pid_max = PID_MAX_DEFAULT;

and PID_MAX_DEFAULT, if you want to #include something, ends up in
<linux/threads.h>

thanks!
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

Never underestimate the bandwidth of a station wagon full of tapes.
                -- Dr. Warren Jackson, Director, UTCS

-- 
[email protected] mailing list

Reply via email to