This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]