Skip to content

[bug] fatal SIGINT/SIGTERM kill the shell by signal instead of exiting 128+n #741

Closed

Description

@caomengxuan666

Triage from the failure-set review. rubash -c 'kill -INT $$' dies BY the signal (wait status signaled; harness reports -1); GNU bash exits 130 (SIGTERM: 143). Same for SIGTERM. Non-interactive shells must translate fatal signals to 128+n exits instead of dying with default disposition. Failing tests: issue526_sigquit_noninteractive_ignore::{untrapped_sigint,untrapped_sigterm}_* (pass: the SIGQUIT-ignore half, already correct). Likely owner: signal disposition/exit path (compare GNU jobs/signal handling for non-interactive shells).

Activity

  1. caomengxuan666 commented on Oct 17, 2026

    @caomengxuan666
    MemberAuthor

    Not a bug — engine already matches GNU. Direct-waiter probe: GNU bash and rubash BOTH die by SIGINT/SIGTERM (signal status, no 130); rc 130 exists only via the parent's jobs.c translation. An engine-side exit(130) translation (as first proposed) would DIVERGE from GNU and was rejected. The unsatisfiable 130/143 test expectations are fixed as #747.

  2. added
    bug
    area:jobs
    family:S9
    on Oct 17, 2026
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

    area:jobsbugfamily:S9

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions