The code responsible for finding the PID of inotifywait isn't working. My guess is MiSTer changed its ps implementation at some point and the current version of ps has a different output format from when this code was written. The current ps version tries to align its output using multiple spaces, which makes cut impractical.
The new code specifies the output columns for ps and uses read's built-in word splitting to parse the PID. Hopefully this'll be more resilient to formatting changes.
The code responsible for finding the PID of inotifywait isn't working. My guess is MiSTer changed its
ps
implementation at some point and the current version ofps
has a different output format from when this code was written. The currentps
version tries to align its output using multiple spaces, which makescut
impractical.The new code specifies the output columns for
ps
and usesread
's built-in word splitting to parse the PID. Hopefully this'll be more resilient to formatting changes.