X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Flist.c;h=0b4afa308047b3ce951b27c2519494b61f1bf269;hp=241a0434549efe8891b9742845117664e2f0e874;hb=3301e7404d026657c2e466bcdf504b93ddbe58e3;hpb=82a3637f639486c07ff937ab03e1e9532379d26a 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: