Hi,dev-team
As the subject is my problem. It seems that the function
get_cmdline_by_pid() will fail if kernel.pid_max > 10 (i.e. 131072)
static char *get_cmdline_by_pid(pid_t pid)
{
int ret;
FILE *fp = NULL;
char *cmdline = NULL;
char path[20];/* C
On Thu, Jun 4, 2015 at 5:00 AM, zhenyu.ren wrote:
> Hi,dev-team
>
>As the subject is my problem. It seems that the function
> get_cmdline_by_pid() will fail if kernel.pid_max > 10 (i.e. 131072)
>
> static char *get_cmdline_by_pid(pid_t pid)
> {
> int ret;
> FILE *fp = NULL