diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-16 12:49:15 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-16 12:49:15 +0200 |
commit | 57be5daa40c40df411716e22de0795160c88e647 (patch) | |
tree | 41965804d6e5f967904eeca541d1fac1b9f7086b /procps | |
parent | 1abaa6b84c2213c59ed6b8232263a7d4bbfb69a9 (diff) |
lsof: print fd# too
function old new delta
lsof_main 179 188 +9
.rodata 103194 103187 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r-- | procps/lsof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/lsof.c b/procps/lsof.c index 21ac85ed3..9cb8d066c 100644 --- a/procps/lsof.c +++ b/procps/lsof.c @@ -66,7 +66,7 @@ int lsof_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) safe_strncpy(name + baseofs, entry->d_name, 10); if ((fdlink = xmalloc_readlink(name)) != NULL) { - printf("%d\t%s\t%s\n", proc->pid, proc->exe, fdlink); + printf("%d\t%s\t%s\t%s\n", proc->pid, proc->exe, entry->d_name, fdlink); free(fdlink); } } |