From: | Zhang Le <robert.zhangle@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] where does PID wrap around? | ||
Date: | Thu, 27 Jul 2006 02:24:33 | ||
Message-Id: | 5ffa2caa0607261920i117829c2x60572cdaa0a4749d@mail.gmail.com | ||
In Reply to: | [gentoo-user] where does PID wrap around? by Iain Buchanan |
1 | On 7/27/06, Iain Buchanan <iaindb@××××××××××××.au> wrote: |
2 | > |
3 | > Hi all, |
4 | > |
5 | > I know that PID's wrap around if they get to a sufficiently large number |
6 | > - anyone know what that number is? |
7 | > |
8 | > 2^16 (65536), or 2^15 (32768)? |
9 | |
10 | |
11 | $ cat /proc/sys/kernel/pid_max |
12 | 32768 |
13 | |
14 | Is it fixed for a particular system / kernel / universe? or even better, |
15 | > is there a #define I can use from one of the system headers? |
16 | > |
17 | > it is defined in kernel/pid.c |
18 | int pid_max = PID_MAX_DEFAULT; |
19 | |
20 | -- |
21 | Zhang Le, Robert |
22 | Linux Engineer/Trainer |
23 | http://zhllg.spaces.msn.com |
24 | http://zh.gentoo-wiki.com |
25 | http://savannah.nongnu.org/projects/pgubook |
26 | http://groups.google.com/group/gentoo-china |
27 | http://groups.google.com/group/szlug |
Subject | Author |
---|---|
Re: [gentoo-user] where does PID wrap around? | Iain Buchanan <iaindb@××××××××××××.au> |