Skip to content

process: accept SIGSTKFLT/SIGPOLL/SIGPWR by name and fire aliased signal listeners - #33776

Closed
robobun wants to merge 5 commits into
mainfrom
farm/5160ebe8/process-signal-name-tables
Closed

robobun wants to merge 5 commits into
mainfrom
farm/5160ebe8/process-signal-name-tables

process: keep signal handler installed while any alias has a listener

2eb860d
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Jul 8, 2026 in 22m 46s

Code review found 1 important issue

Found 1 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 1
🟡 Nit 0
🟣 Pre-existing 0
Severity File:Line Issue
🔴 Important src/jsc/bindings/BunProcess.cpp:1156-1164 SIGUNUSED missing from signal name maps on musl — new test fails and process.kill/on still reject the name

Annotations

Check failure on line 1164 in src/jsc/bindings/BunProcess.cpp

See this annotation in the file changed.

@claude claude / Claude Code Review

SIGUNUSED missing from signal name maps on musl — new test fails and process.kill/on still reject the name

On musl builds, `os.constants.signals` also contains `SIGUNUSED` (musl's `<bits/signal.h>` has `#define SIGUNUSED SIGSYS`, and `ProcessBindingConstants.cpp:583` adds it under `#ifdef SIGUNUSED`), but there's no matching entry here — so the new *"process.kill accepts every signal name in os.constants.signals"* test will fail on the Alpine CI lanes with `[['SIGUNUSED','ERR_UNKNOWN_SIGNAL']]`, and `process.on('SIGUNUSED', fn)` still has the same listener-attached-but-no-sigaction hazard this PR fix