Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/process_iterator_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static int read_process_info(pid_t pid, struct process *p)
//read command line
sprintf(exefile,"/proc/%d/cmdline", p->pid);
fd = fopen(exefile, "r");
if (fd==NULL) return -1;
if (fgets(buffer, sizeof(buffer), fd)==NULL) {
fclose(fd);
return -1;
Expand Down