#include <stdlib.h>
#include <string.h>
-#include "cmd.h"
+#include "../cmd.h"
static int opt_pid;
static int opt_channels;
/* 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: