From b2fee47a14261bb8c52a9ef5dcd144fa119b8a1d Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 2 Sep 2010 20:26:16 +0000 Subject: [PATCH] don't resolve port names --- OpenFilesScreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c index 7a574707..827a75bf 100644 --- a/OpenFilesScreen.c +++ b/OpenFilesScreen.c @@ -75,7 +75,7 @@ static void OpenFilesScreen_draw(OpenFilesScreen* this) { static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(int pid) { 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"); OpenFiles_ProcessData* process = calloc(sizeof(OpenFiles_ProcessData), 1); OpenFiles_FileData* file = NULL;