mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
refactor(appd): consolidate portal cleanup through kill_portal in normal exit path
This commit is contained in:
parent
0877bd970d
commit
8eb7211998
1 changed files with 1 additions and 5 deletions
|
|
@ -281,11 +281,7 @@ pub(crate) async fn supervise(
|
|||
|
||||
mount_orch.umount();
|
||||
|
||||
if let Some((ref sock, mut portal_child)) = portal {
|
||||
let _ = portal_child.kill().await;
|
||||
let _ = portal_child.wait().await;
|
||||
let _ = std::fs::remove_file(sock);
|
||||
}
|
||||
kill_portal(portal).await;
|
||||
|
||||
{
|
||||
let mut reg = registry.lock().await;
|
||||
|
|
|
|||
Loading…
Reference in a new issue