Skip to content

Commit 3c98c74

Browse files
committed
[Runtime] Exclude logd_helper from tracing.
logd_helper is part of the log system and we can't safely log from within it. rdar://126120335
1 parent 734da62 commit 3c98c74

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
@@ -34,7 +34,8 @@ static inline bool shouldEnableTracing() {
3434
if (__progname && (strcmp(__progname, "logd") == 0 ||
3535
strcmp(__progname, "diagnosticd") == 0 ||
3636
strcmp(__progname, "notifyd") == 0 ||
37-
strcmp(__progname, "xpcproxy") == 0))
37+
strcmp(__progname, "xpcproxy") == 0 ||
38+
strcmp(__progname, "logd_helper") == 0))
3839
return false;
3940
return true;
4041
}

0 commit comments

Comments
 (0)