Re: [gentoo-user] where does PID wrap around?

2006-07-26 Thread Richard Fish
On 7/26/06, Iain Buchanan <[EMAIL PROTECTED]> wrote: and PID_MAX_DEFAULT, if you want to #include something, ends up in You can also use the sysctl() function to get the value at run-time, just in case it has been changed. But that will only work on linux. -Richard -- gentoo-user@gentoo.org

Re: [gentoo-user] where does PID wrap around?

2006-07-26 Thread Iain Buchanan
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

Re: [gentoo-user] where does PID wrap around?

2006-07-26 Thread Zhang Le
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 32768Is it fixed for a particular system / kernel / universe? or even b

[gentoo-user] where does PID wrap around?

2006-07-26 Thread Iain Buchanan
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)? 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? thanks, -- Ia