Skip to content

Should kill.q offer a nonzero exit status when it finds no connections? #784

Backlog

Description

@Jebiel

I’ve noticed that the kill.q script logs “Failed to find any valid connections” and exits with a status code of 0 when it can’t connect to a target.

Consequently, callers receive the same exit status regardless of whether the helper sent shutdown requests or simply found no usable connections.

Activity

  1. ZHoulihanDI commented on Dec 1, 2026

    @ZHoulihanDI
    Contributor

    Hi Jess , from my perspective I feel l am trying to decide if this is worth changing, as I feel the purpose of a kill command is to make sure the process goes down, if its already down yes it has technically not stopped the process as it was already down but its the same end result and I feel having exit 1 would just feel like it would be noise. Is there a specific reason you would want it to show exit 1 even though the process that the script intended to kill would not be running anyways?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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