Xfennec / progress

Linux tool to show progress for cp, mv, dd, ... (formerly known as cv)
GNU General Public License v3.0
8.57k stars 313 forks source link

Improve "How does it work" section in README.md #179

Closed danielhoherd closed 1 year ago

danielhoherd commented 1 year ago

In the "How does it work" section of the README.md, the text states "It simply scans /proc for interesting commands", however this tool runs on macOS, which does not have the /proc filesystem. It would be nice to know a bit more about how this works outside of linux.

BestPig commented 1 year ago

You can check my initial commit for mac compatibility (https://github.com/Xfennec/progress/commit/36f3aa8a4be5b698ea826721e8c5fccfe424507f). Initially progress was only on Linux it's why its describe like that, but some support to osx was added.

The concept is still the same, but it doesn't list /proc but use some macOS alternative by calling function proc_listpids and proc_name and then getting more on processes via proc_pidinfo and proc_pidfdinfo