simplify lsof call

This commit is contained in:
Jeremy W. Chalfant 2015-12-23 15:45:06 -06:00 committed by Christoph Hartmann
parent 221d27423e
commit 3211071b9f

View file

@ -153,7 +153,7 @@ class LsofPorts < PortsInfo
# -F p=pid, c=command, P=protocol name, t=type, n=internet addresses
# see 'OUTPUT FOR OTHER PROGRAMS' in LSOF(8)
lsof_cmd = inspec.command("#{@lsof} -nP -iTCP -iUDP -FpctPn")
lsof_cmd = inspec.command("#{@lsof} -nP -i -FpctPn")
return nil if lsof_cmd.exit_status.to_i != 0
# build this with formatted output (-F) from lsof