I’m getting pids well above 64k on my laptop (OS X). On 06 Aug 2014, at 22:33, Alexander Burger <[email protected]> wrote:
> Hi Randall, > >> I believe that modern Linux and FreeBSD implementations use 32 bit >> ints for the pid_t. > > Right. > >> There will never be that many processes on a 32 bit >> OS, but since they just go forward until they wrap, getting a pid bigger >> than 16 bits is probably even to be expected. > > However, they don't plainly wrap. There is a system limit in the kernel, > controlled via "/proc/sys/kernel/pid_max". > > Even on 64-bit machines (where pid_t is also an 'int', i.e. a 64-bit > number), PIDs don't get up to such huge numbers. > > ♪♫ Alex > -- > UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe -- UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
