Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
b2fee47a
Commit
b2fee47a
authored
Sep 02, 2010
by
Hisham Muhammad
Browse files
don't resolve port names
parent
40eac57a
Changes
1
Show whitespace changes
Inline
Side-by-side
OpenFilesScreen.c
View file @
b2fee47a
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment