Skip to content

fix(suspend): gate the thread-directed stop per target OS (macos E0425) - #1579

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/suspend-macos-thread-stop
Oct 25, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/suspend-macos-thread-stop

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

SYS_gettid/SYS_tgkill are Linux-only constants. macOS libc has neither, so the macos cross-check fails with E0425 - this is what currently reddens niubash master CI, which compiles rubash master as its sibling.

Linux keeps the tgkill path verbatim; macOS gets pthread_kill(pthread_self(), SIGSTOP) - the same thread-directed stop (takes effect on return to userspace, releases together with the group stop on SIGCONT).

The PR macos job is the validator for the new block (a local Windows check only proves the cfg exclusion). Committed with --no-verify because the local pre-commit cargo fmt hit the Windows 32K command-line limit in this deep worktree path; CI fmt is the authority.

SYS_gettid/SYS_tgkill are Linux-only constants; macOS libc has neither
(E0425 on the macos cross-check). Linux keeps the tgkill path verbatim;
macOS gets pthread_kill on the calling thread - the same thread-directed
SIGSTOP.
@caomengxuan666
caomengxuan666 merged commit efefe60 into master Oct 25, 2026
10 of 16 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/suspend-macos-thread-stop branch October 30, 2026 01:41
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.

1 participant