HomePhabricator

[sanitizer] Don't call task_for_pid(mach_task_self). NFC.

Description

[sanitizer] Don't call task_for_pid(mach_task_self). NFC.

Calling task_for_pid with mach_task_self is just returning mach_task_self anyway, but it also triggers system warnings (task_for_pid is only supposed to be used by high-privileged executables). NFC.

rdar://problem/39198248

Differential Revision: https://reviews.llvm.org/D51119

Details

Committed
kuba.breckaAug 23 2018, 3:55 PM
Differential Revision
D51119: [sanitizer] Don't call task_for_pid(mach_task_self). NFC.
Parents
rL340586: Fix typo
Branches
Unknown
Tags
Unknown