Skip to content

signalling a system doesn't set an error code on an error #29

@midnightveil

Description

@midnightveil

Compare e.g.:

$ mq.sh sem -wait odroidc4_1
Attempting to grab lock you already own with the same key. Please explicitly release
Failed to acquire lock for system (odroidc4_1)
$ echo $?
2

With

$ mq.sh sem -signal odroidc4_1
Attempting to unlock system odroidc4_1 that you do not hold
$ echo $?
0

Or

$ mq.sh sem -signal odroidc4_1
Attempting to unlock system odroidc4_1 with the wrong key!
$ echo $?
0

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