Improve add-context command
[lttng-tools.git] / lttng / commands / list.c
index 52c44eeb652a73f638d0c8182426a62fdf84bbf6..0b4afa308047b3ce951b27c2519494b61f1bf269 100644 (file)
@@ -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:
This page took 0.023131 seconds and 4 git commands to generate.