diff --git a/proc/proc-lib.pl b/proc/proc-lib.pl index ef12aa2de..fe35357b2 100755 --- a/proc/proc-lib.pl +++ b/proc/proc-lib.pl @@ -415,7 +415,8 @@ if ($has_lsof_command) { open(LSOF, "$has_lsof_command -i tcp -i udp -n |"); while() { if (/^(\S+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+).*(TCP|UDP)\s+(.*)/) { - local $n = { 'pid' => $2, + local $n = { 'cmd' => $1, + 'pid' => $2, 'fd' => $4, 'type' => $5, 'proto' => $7 }; @@ -442,7 +443,6 @@ if ($has_lsof_command) { close(LSOF); } return @rv; - } # find_process_sockets(pid)