Chen

Results 295 comments of Chen

> But lsof command hang for too long, it scan the whole /mnt/sdc filesystem which has millions of files. As my knowledge, lsof just need scan /proc/*/fd, to filter paths...

> seems I should use `+d` insted of `+D` yes, scanning the disk is intended if you specify `+D`.

``` +d s causes lsof to search for all open instances of directory s and the files and directories it contains at its top level. +d does NOT descend the...

The real problem is, the macOS kernel does not provide the information to lsof: no UDP socket info in `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/proc_info.h`

> @jiegec So there is no solution / workaround to this problem? No that I am aware as of now. But I am not expert on this, you could investigate...