[PATCH] D39717: Always use prctl(PR_SET_PTRACER)

2017-11-07 Thread Mike Hommey via Phabricator via cfe-commits
glandium updated this revision to Diff 121983. glandium added a comment. Updated wording. https://reviews.llvm.org/D39717 Files: lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc Index: lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc =

[PATCH] D39717: Always use prctl(PR_SET_PTRACER)

2017-11-07 Thread Mike Hommey via Phabricator via cfe-commits
glandium created this revision. Herald added a subscriber: kubamracek. Sufficiently old Linux kernel headers don't provide the PR_SET_PTRACER, but we can still call prctl with it if the runtime kernel is newer. Even if it's not, prctl will only return EINVAL. https://reviews.llvm.org/D39717 F