Does it matter that we might be truncating a pid here? PIDs are
/usually/ < 32K but the pid_t itself is an int and I thought there was
a configuration option on the Linux kernel to widen the used PID field
once storage passed a certain point or some such thing - can't
remember. Anyway, should this be 8x instead of 4x to properly
represent a 32 bit value?
On 06/01/2018 09:58 AM, Steven E. Estes wrote:
[KSB] From https://elixir.bootlin.com/linux/v4.16.13/source/include/linux/threads.h
/*
define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
(sizeof(long) > 4 ? 4 1024 1024 : PID_MAX_DEFAULT))
– Bhaskar
-- YottaDB - Rock solid. Lightning fast. Secure. Pick any three.