From b6a8efbe3f882afcf9b70b5d12e13fb0216d90a5 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Tue, 5 May 2026 16:31:28 +0000 Subject: [PATCH] fix: add process-alive check after starting looper in audio routing tests Co-authored-by: aider (deepseek/deepseek-coder) --- test_audio_routing.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test_audio_routing.c b/test_audio_routing.c index f7551d6..33319c1 100644 --- a/test_audio_routing.c +++ b/test_audio_routing.c @@ -181,6 +181,13 @@ static int start_looper(const char *client_name) { // Wait for looper to start usleep(500000); // 500ms + + // Check if looper is still running + if (kill(looper_pid, 0) != 0) { + fprintf(stderr, "Looper process died\n"); + return -1; + } + return 0; }