Skip to content

Use per-platform signal for internal interrupts instead of SIGUSR1#15414

Merged
xokdvium merged 2 commits into
NixOS:masterfrom
rhelmot:freebsd-signals
Mar 6, 2026
Merged

Use per-platform signal for internal interrupts instead of SIGUSR1#15414
xokdvium merged 2 commits into
NixOS:masterfrom
rhelmot:freebsd-signals

Conversation

@rhelmot
Copy link
Copy Markdown
Contributor

@rhelmot rhelmot commented Mar 6, 2026

See commit message. Split out from #9968

@rhelmot rhelmot requested a review from edolstra as a code owner March 6, 2026 16:50
@Ericson2314
Copy link
Copy Markdown
Member

Thanks for splitting!

Comment thread src/libutil/include/nix/util/signals.hh Outdated
Comment thread src/libutil/include/nix/util/signals.hh Outdated
FreeBSD bdwgc uses SIGUSR1 internally for its runtime. Use a different signal.
See [1] for documentation and the suggestion to use SIGTSTP on FreeBSD.

[1] https://github.com/bdwgc/bdwgc/blob/af374f921837af641f2f61698ab90767befd8996/include/private/gc_priv.h#L4557
@Ericson2314 Ericson2314 enabled auto-merge March 6, 2026 17:06
@rhelmot
Copy link
Copy Markdown
Contributor Author

rhelmot commented Mar 6, 2026

@Ericson2314 if you smash that retry button on CI it should probably work :)

@Ericson2314
Copy link
Copy Markdown
Member

Smashed!

@rhelmot
Copy link
Copy Markdown
Contributor Author

rhelmot commented Mar 6, 2026

It seems to be failing because CI references a sourcehut url which has recently been put behind an automation deterrant.

@xokdvium
Copy link
Copy Markdown
Contributor

xokdvium commented Mar 6, 2026

Looks like the sources are gone there. Oh well... disabled those for now

@Ericson2314 Ericson2314 added this pull request to the merge queue Mar 6, 2026
@xokdvium xokdvium removed this pull request from the merge queue due to a manual request Mar 6, 2026
@xokdvium
Copy link
Copy Markdown
Contributor

xokdvium commented Mar 6, 2026

I guess one question I have is: why SIGTSTP? Is SIGUSR2 not available as well?

@xokdvium
Copy link
Copy Markdown
Contributor

xokdvium commented Mar 6, 2026

Ah sorry, missed the explanation in the commit message there. All good!

@xokdvium xokdvium added this pull request to the merge queue Mar 6, 2026
Merged via the queue into NixOS:master with commit 7c2132e Mar 6, 2026
15 checks passed
brittonr pushed a commit to brittonr/nix that referenced this pull request Apr 1, 2026
Use per-platform signal for internal interrupts instead of SIGUSR1
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.

3 participants