This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Fix sigaction interceptor after D107186
ClosedPublic

Authored by vitalybuka on Aug 23 2021, 11:58 PM.

Details

Summary

Set SA_SIGINFO only if we set sighandler, or we can set the flag, and
return it as 'old' without actual sigaction set.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Aug 23 2021, 11:58 PM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2021, 11:58 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Aug 24 2021, 2:48 AM
melver added inline comments.
compiler-rt/test/sanitizer_common/TestCases/Posix/replace_sigaction.cpp
11

Are these intentionally non-static?
Just wondering if on some platforms this name might cause conflicts.

This revision is now accepted and ready to land.Aug 24 2021, 2:48 AM
vitalybuka marked an inline comment as done.

static handlers

This revision was landed with ongoing or failed builds.Aug 24 2021, 10:19 AM
This revision was automatically updated to reflect the committed changes.