Commit b2fee47a authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

don't resolve port names

parent 40eac57a
...@@ -75,7 +75,7 @@ static void OpenFilesScreen_draw(OpenFilesScreen* this) { ...@@ -75,7 +75,7 @@ static void OpenFilesScreen_draw(OpenFilesScreen* this) {
static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(int pid) { static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(int pid) {
char command[1025]; char command[1025];
snprintf(command, 1024, "lsof -p %d -F 2> /dev/null", pid); snprintf(command, 1024, "lsof -P -p %d -F 2> /dev/null", pid);
FILE* fd = popen(command, "r"); FILE* fd = popen(command, "r");
OpenFiles_ProcessData* process = calloc(sizeof(OpenFiles_ProcessData), 1); OpenFiles_ProcessData* process = calloc(sizeof(OpenFiles_ProcessData), 1);
OpenFiles_FileData* file = NULL; OpenFiles_FileData* file = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment