don't show inject status if not tracing

This commit is contained in:
5ec1cff
2023-12-12 00:50:49 +08:00
parent db60c3185e
commit faf074b990

View File

@@ -458,7 +458,8 @@ static void updateStatus() {
#define WRITE_STATUS_ABI(suffix) \
if (status##suffix.supported) { \
status_text += " zygote" #suffix ":"; \
if (status##suffix.zygote_injected) status_text += "injected,"; \
if (tracing_state != TRACING) status_text += "unknown,"; \
else if (status##suffix.zygote_injected) status_text += "injected,"; \
else status_text += "not injected,"; \
status_text += " daemon" #suffix ":"; \
if (status##suffix.daemon_running) status_text += "running"; \