Skip to content

Report signals in job exit status - #4490

Merged
un-def merged 1 commit into
masterfrom
issue_4487_signal_exit_status
Nov 13, 2026
Merged

un-def merged 1 commit into
masterfrom
issue_4487_signal_exit_status

Conversation

@un-def

@un-def un-def commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

When a signal killed the job's process, the runner reported exit status -1, the value of os.ProcessState.ExitCode() for any signal, and the job was shown as exited (-1).

The runner now reports -N for signal N, as Python's subprocess does. The server shows it as 128+N, which is what a forking shell or Docker reports, so a kill looks the same whichever shell the job runs in. -1 is shown as is, since older runners report it for any signal.

A failed job without an exit status is now shown as error instead of exited (None).

Fixes: #4487

When a signal killed the job's process, the runner reported exit
status -1, the value of os.ProcessState.ExitCode() for any signal, and
the job was shown as `exited (-1)`.

The runner now reports -N for signal N, as Python's subprocess does.
The server shows it as 128+N, which is what a forking shell or Docker
reports, so a kill looks the same whichever shell the job runs in. -1
is shown as is, since older runners report it for any signal.

A failed job without an exit status is now shown as `error` instead of
`exited (None)`.

Fixes: #4487
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@un-def
un-def merged commit d616872 into master Nov 13, 2026
26 checks passed
@un-def
un-def deleted the issue_4487_signal_exit_status branch November 13, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: exited (-1) status when the job's process is killed by a signal

1 participant