Skip to content

fix(signal-watcher): don't assert false on SIGKILL#13370

Merged
anmonteiro merged 1 commit intoocaml:mainfrom
anmonteiro:anmonteiro/signal-watcher-sigkill
Jan 19, 2026
Merged

fix(signal-watcher): don't assert false on SIGKILL#13370
anmonteiro merged 1 commit intoocaml:mainfrom
anmonteiro:anmonteiro/signal-watcher-sigkill

Conversation

@anmonteiro
Copy link
Copy Markdown
Collaborator

on macOS, in a subset of cases, the signal watcher will catch both SIGKILL and SIGINT.

we ignore SIGKILL instead of running assert false, which will kill the program less spectacularly.

@anmonteiro anmonteiro requested a review from rgrinberg January 19, 2026 00:09
Copy link
Copy Markdown
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea how this code path can be reached, but it seems harmless.

Could you leave a comment that this is for Mac in the code?

@anmonteiro anmonteiro force-pushed the anmonteiro/signal-watcher-sigkill branch from 547514b to 884eda5 Compare January 19, 2026 08:26
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
@anmonteiro anmonteiro force-pushed the anmonteiro/signal-watcher-sigkill branch from 884eda5 to d012e23 Compare January 19, 2026 08:26
@anmonteiro anmonteiro merged commit 27e5795 into ocaml:main Jan 19, 2026
28 checks passed
@anmonteiro anmonteiro deleted the anmonteiro/signal-watcher-sigkill branch January 19, 2026 17:30
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Apr 3, 2026
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Apr 3, 2026
…#13370)"

This reverts commit 27e5795.

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
anmonteiro added a commit that referenced this pull request Apr 3, 2026
…" (#14029)

This reverts commit 27e5795.


Turns out that the failure rather happens during SIGINT cleanup, where
the behavior of `SIGCHLD` is not super consistent on macOS. Repro in
#14023

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
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.

2 participants