[File] [PATCH] handle full disk space errors as failure
christos at zoulas.com
Mon Apr 18 21:42:57 UTC 2022
Committed, but where is the final flush() done?
> On Apr 13, 2022, at 4:36 PM, Dirk Müller <dirk at dmllr.de> wrote:
> do a final fflush of stdout even in buffered mode
> so that a ENOSPACE is caught and propagated as an exit
> code 1 so that the surrounding logic can detect and
> handle it as a failure rather than silently misbehaving.
> reproducer is
> file somefile > /dev/full && echo exit code was 0
> File mailing list
> File at astron.com
More information about the File