1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

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.
This commit is contained in:
reuk 2025-11-06 14:39:21 +00:00
parent 983cbdc441
commit 3b569d5801
No known key found for this signature in database

View file

@ -1486,7 +1486,7 @@ private:
kill (childProcess, SIGTERM);
waitpid (childProcess, &status, 0);
if (WIFEXITED (status))
if (WIFEXITED (status) || WIFSIGNALED (status) || WIFSTOPPED (status))
break;
}
}