mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 21:42:40 +07:00
The TTY plugin might fail in read() with EINVAL if the inotify event buffer is too small. Fix: set the receive event buffer to the size recommended in inotify(7). Also add a handler for EINVAL to close and reinitialize the inotify descriptor so we do not accidentally overrun the CPU with any unhandled errors. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>