From 3b569d5801717817c2d420edc7610115790e40c8 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 6 Nov 2025 14:39:21 +0000 Subject: [PATCH] WebBrowserComponent: Fix hang when browser window exits unexpectedly If the browser process happened to segfault, the old WIFEXITED check would never succeed and the loop would never break. The issue is resolved by additionally checking for other statuses that also indicate that the child process is no longer alive. --- .../juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp b/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp index 0ea1c1e4dd..2e8bdaa391 100644 --- a/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp +++ b/modules/juce_gui_extra/native/juce_WebBrowserComponent_linux.cpp @@ -1486,7 +1486,7 @@ private: kill (childProcess, SIGTERM); waitpid (childProcess, &status, 0); - if (WIFEXITED (status)) + if (WIFEXITED (status) || WIFSIGNALED (status) || WIFSTOPPED (status)) break; } }