X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=lttng%2Fcommands%2Flist.c;h=0b4afa308047b3ce951b27c2519494b61f1bf269;hb=f40799e8d49a5e8161084fa98023f3e571b51962;hp=241a0434549efe8891b9742845117664e2f0e874;hpb=82a3637f639486c07ff937ab03e1e9532379d26a;p=lttng-tools.git diff --git a/lttng/commands/list.c b/lttng/commands/list.c index 241a04345..0b4afa308 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.c @@ -22,7 +22,7 @@ #include #include -#include "cmd.h" +#include "../cmd.h" static int opt_pid; static int opt_channels; @@ -89,6 +89,9 @@ static char *get_cmdline_by_pid(pid_t pid) /* Caller must free() *cmdline */ cmdline = malloc(PATH_MAX); ret = fread(cmdline, 1, PATH_MAX, fp); + if (ret < 0) { + perror("fread proc list"); + } fclose(fp); end: