Re: [rfc] Options for "info mappings" etc. (Re: [PATCH] Implement new `info core mappings' command)

Ulrich Weigand
2012-01-05T19:35:39Z

Mark Kettenis wrote:
> > Date: Thu, 5 Jan 2012 19:02:35 +0100 (CET)
> > From: "Ulrich Weigand" <uweigand@de.ibm.com>
> >
> > I'm wondering: How can I distinguish the "magic 42000" from
> > a regular PID 42000 ?
>
> Traditionally on Unix, process IDs would wrap at 32767. I believe
> Linux still does this as well.

Ah, indeed. But on Linux this is not a fixed limit any more,
but a configurable parameter (/proc/sys/kernel/pid_max) which
only still *defaults* to 32767.

So it could be easily possible to have Linux systems with
process IDs larger than 32767, it just needs the sysadmin
to change that default ...

Bye,
Ulrich

--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com