From: Joey Hess Date: Wed, 18 Nov 2020 19:03:30 +0000 (-0400) Subject: avoid crash on EOF at end X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~102^2~56^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b021e2322fff44c96ce2e9cccf39454dfade1399;p=git-annex.git avoid crash on EOF at end --- diff --git a/Utility/Process.hs b/Utility/Process.hs index 1348e9ee92..958d239069 100644 --- a/Utility/Process.hs +++ b/Utility/Process.hs @@ -270,7 +270,7 @@ hGetLineUntilExitOrEOF ph h = go [] Just _ -> finalcheck buf finalcheck buf = do - ready <- hWaitForInput h 0 + ready <- waitforinputorerror 0 if ready then getloop buf finalcheck -- No remaining buffered input, though the handle