> lsof is a problem. It is tightly coupled to the base system, enough to > require /usr/src/sys checked out to be able to build it. This means > that it breaks quite frequently:
Correcting Pascal's mail... IMO lsof is used because BSD' netstat doesn't show PID of a process with open sockets. fstat could be used with little filter effort. j.