Improved reliability
A few small changes:
- Fixing errno 22 errors: I suspect the errors mentioned in issue #3 are due to passing a small buffer to the read syscall. inotify events can be huge if the path to the files are large. The buffer is now much bigger and there should be no more errors.
- Changing colors: since probably nobody uses file system events (used to be green) too much, we now have different colors for different UIDs in process events and no colors for file system events.
- Adding a
--debug
flag. By default it is false and error messages are suppressed. Since errors can be excessive for some machines and are not really interesting I think it is a good default.