Skip to content

fix: unhandled fclose(3) failures #1032

@weigp1

Description

@weigp1

Problem

Litecoin has the same issue described in bitcoin#29307.
fclose(3) failure may prevent previously written data from being properly flushed to disk. Current code ignores fclose(3) failures, leaving file close errors undetected and unhandled.

Upstream Fix

PR bitcoin#29307: "util: explicitly close all AutoFiles that have been written"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions