bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
4.11k stars 232 forks source link

Improve fsmonitor resilience some more #884

Closed tleedjarv closed 1 year ago

tleedjarv commented 1 year ago

Recover from fsmonitor process exiting unexpectedly.

A side note: This patch also covers the fsmonitor python script. I doubt anyone is actually using that script anymore. If someone would like to continue using the python script (because the native unison-fsmonitor is not working for some unfixable reason or is unsupported on their platform) then the correct way to do it is to rewrite the script to work with the new fswatch protocol (as defined in fswatch.ml). Or use a third-party watcher that uses the new protocol.