Skip to content

Commit b8cb005

Browse files
committed
Disable tracing in xpcproxy
Add xpcproxy to the list of processes that handle tracing requests and therefore cannot themselves use tracing without deadlocking. rdar://124996590
1 parent c0d423a commit b8cb005

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/Runtime/TracingCommon.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ static inline bool shouldEnableTracing() {
3333
return false;
3434
if (__progname && (strcmp(__progname, "logd") == 0 ||
3535
strcmp(__progname, "diagnosticd") == 0 ||
36-
strcmp(__progname, "notifyd") == 0))
36+
strcmp(__progname, "notifyd") == 0) ||
37+
strcmp(__progname, "xpcproxy") == 0)
3738
return false;
3839
return true;
3940
}

0 commit comments

Comments
 (0)