From: Iain Buchanan <iaindb@netspace.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] where does PID wrap around?
Date: Thu, 27 Jul 2006 13:11:47 +0930 [thread overview]
Message-ID: <1153971707.15692.22.camel@orpheus> (raw)
In-Reply-To: <5ffa2caa0607261920i117829c2x60572cdaa0a4749d@mail.gmail.com>
On Thu, 2006-07-27 at 10:20 +0800, Zhang Le wrote:
> On 7/27/06, Iain Buchanan <iaindb@netspace.net.au> 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
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-07-27 3:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-27 2:02 [gentoo-user] where does PID wrap around? Iain Buchanan
2006-07-27 2:20 ` Zhang Le
2006-07-27 3:41 ` Iain Buchanan [this message]
2006-07-27 4:27 ` Richard Fish
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1153971707.15692.22.camel@orpheus \
--to=iaindb@netspace.net.au \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox