mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
WebContent: Add shutdown_server IPC call to request process exit
This ensures that removing the last view from a WebContentClient will close its associated process, assuming the WebContent process is not hung. A more drastic measure will be needed to trigger forcefully killing the process when it doesn't respond to this request.
This commit is contained in:
parent
4cc3d598f9
commit
29b4f21c7b
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/ADKaster
Commit: 29b4f21c7b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/319
4 changed files with 9 additions and 0 deletions
|
@ -50,6 +50,7 @@ void WebContentClient::unregister_view(u64 page_id)
|
|||
m_views.remove(page_id);
|
||||
if (m_views.is_empty()) {
|
||||
on_web_content_process_crash = nullptr;
|
||||
async_close_server();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue