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:
parent
983cbdc441
commit
3b569d5801
1 changed files with 1 additions and 1 deletions
|
|
@ -1486,7 +1486,7 @@ private:
|
|||
kill (childProcess, SIGTERM);
|
||||
waitpid (childProcess, &status, 0);
|
||||
|
||||
if (WIFEXITED (status))
|
||||
if (WIFEXITED (status) || WIFSIGNALED (status) || WIFSTOPPED (status))
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue