Skip to content

Commit 6adae95

Browse files
committed
[6.0] 🍒 Disable tracing in xpcproxy
**Description:** Add xpcproxy to the list of processes that handle tracing requests and therefore cannot themselves use tracing without deadlocking. **Reviewed:** Ian Campbell **Risk:** Low, just adds "xpcproxy" to an existing list of processes that will have tracing suppressed. Resolves rdar://124996590
1 parent fb24ebe commit 6adae95

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)