On Wed, Dec 8, 2010 at 3:52 PM, Garrett Cooper <[email protected]> wrote:
> On Wed, Dec 8, 2010 at 3:47 PM, Matthew Fleming <[email protected]> wrote:
>> On Wed, Dec 8, 2010 at 3:01 PM, Bruce Cran <[email protected]> wrote:
>>> On Wed, 8 Dec 2010 14:54:57 -0800
>>> Matthew Fleming <[email protected]> wrote:
>>>
>>>> This is what lsof is for.  I believe there's one in ports, but I have
>>>> never tried it.
>>>
>>> Is there any advantage to using lsof instead of fstat(1) (fstat -p pid)?
>>
>> I believe that lsof reports on all open files by all processes,
>> whereas fstat will only report on a specific provided pid.
>
>    lsof prints out all open file descriptors whereas I thought that
> fstat had to be targeted to specific files / directories / vmcore
> files / etc.

    Nevermind. As Andriy pointed out in a later post, I was wrong.
Thanks,
-Garrett
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to