Fix: get_cmdline_by_pid path length assumes a max pid of 65535
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Jun 2015 21:27:31 +0000 (23:27 +0200)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Jun 2015 21:36:21 +0000 (23:36 +0200)
PROC(5) mentions that "On 64-bit systems, pid_max can be set to any
value up to 2^22 (PID_MAX_LIMIT, approximately 4 million)."

We use 32 bits for simplicity's sake.

Reported-by: Zhenyu Ren <zhenyu.ren@aliyun.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.025427 seconds and 4 git commands to generate.