Skip to content

Mosh shouldn't abort if closing an fd fails due to non-critical reasons #1349

@yashvsingh

Description

@yashvsingh

At https://github.com/mobile-shell/mosh/blob/master/src/network/network.cc#L605 there is fatal_assert() even when the error is ignorable (e.g. EIO, see https://man7.org/linux/man-pages/man2/close.2.html )
We should check errono and if the error is ignorable (e.g. I/O failed) mosh shouldn't abort. (We should also log the errono).

I am encountering this assert just 2 minutes after disconnecting from the network.

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