bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
4.07k stars 229 forks source link

Silence a broken pipe exception #1001

Closed tleedjarv closed 6 months ago

tleedjarv commented 7 months ago

Without the patch, piping -doc output to a pager can lead to a broken pipe exception when quitting the pager.

To test, try: unison -doc all | less (or your chosen pager) with and without this patch. Quit the pager before it has buffered all the output. You will see an unhandled exception without this patch.