3 ms·
I might be missing something here, but shouldn't the graph be directed (processes opening fifos in read-only mode, or even unidirectional pipes like on Linux)?
by MayeulC 9y ago
I might be missing something here, but shouldn't the graph be directed (processes opening fifos in read-only mode, or even unidirectional pipes like on Linux)? Or is it something impossible to query with lsof?
It otherwise is a very neat graphical overview of the state of a system!
- zevv 9y agoafaik that info is not available from lsof, but I'm open to suggestions if there is more sensible data to extract from the output.
- zokier 9y agoSlide 12 here[1] shows that lsof distinguishes the read and write ends of FIFOs at least. For TCP I suppose I makes sense to check which end uses ephemeral port. [1] https://github.com/nh2/strace-pipes-presentation/blob/master/presentation/Debugging%20across%20pipes%20and%20sockets%20with%20strace.pdf https://github.com/nh2/strace-pipes-presentation/blob/master...
- zevv 9y agoTrue, info for FIFOs can be derived from lsof output, update follows.
- cryptonector 9y agoThat info is available. If a pipe fd is open for reading, then that's the fd for reading...