summaryrefslogtreecommitdiffstats
path: root/OpenFilesScreen.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-09-02 20:26:16 +0000
committerHisham Muhammad <hisham@gobolinux.org>2010-09-02 20:26:16 +0000
commitb2fee47a14261bb8c52a9ef5dcd144fa119b8a1d (patch)
treeb14dbb4abda2b24e35f4e9d3889dede8fd7d2083 /OpenFilesScreen.c
parent40eac57aefb47bccabe492fcf015c9686b9dac20 (diff)
don't resolve port names
Diffstat (limited to 'OpenFilesScreen.c')
-rw-r--r--OpenFilesScreen.c2
1 files changed, 1 insertions, 1 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy