Skip to content

Correct dump-records signal-safety documentation - #123

Open
dajiaohuang wants to merge 1 commit into
bytedance:devfrom
dajiaohuang:docs/122-dump-records-signal-safety
Open

Correct dump-records signal-safety documentation#123
dajiaohuang wants to merge 1 commit into
bytedance:devfrom
dajiaohuang:docs/122-dump-records-signal-safety

Conversation

@dajiaohuang

Copy link
Copy Markdown

This PR fixes #122

Problem

Both English and Chinese manuals say shadowhook_dump_records is async-signal-safe. Its implementation locks recorder mutexes and therefore cannot safely run in an asynchronous signal handler.

Changes

Update both language versions to warn callers not to invoke the API from an asynchronous signal handler.

Verification

  • Checked every tracked Markdown file to ensure the old positive safety claim is absent.
  • Verified that both manuals contain the matching negative warning.
  • Ran git diff --check.

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