Skip to content

Wrong error code returned on SIGINT #5258

@paladincorners

Description

@paladincorners

Output of restic version

restic 0.17.3 compiled with go1.23.3 on darwin/amd64

What backend/service did you use to store the repository?

Problem description / Steps to reproduce

When you run restic and then interrupt it with Ctrl-C, it returns an exit code of 1 (checked with echo $?)

Expected behavior

According to https://restic.readthedocs.io/en/latest/075_scripting.html, the exit code should be 130.

Actual behavior

The exit code was 1.

Do you have any idea what may have caused this?

Did restic help you today? Did it make you happy in any way?

Restic is great and makes me happy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions