mirror of
https://github.com/edera-dev/krata.git
synced 2026-11-04 21:22:20 +00:00
krata: rework xenstore watch for reliability
This commit is contained in:
4 files changed
+64
-35
No files matched your search
@@ -247,7 +247,8 @@ impl Runtime {
|
||||
.await?
|
||||
.ok_or_else(|| anyhow!("unable to resolve guest: {}", uuid))?;
|
||||
let path = format!("/local/domain/{}/krata/guest/exit-code", info.domid);
|
||||
let handle = context.xen.store.watch(&path).await?;
|
||||
let handle = context.xen.store.create_watch().await?;
|
||||
context.xen.store.bind_watch(&handle, &path).await?;
|
||||
let watch = ExitCodeWatch {
|
||||
handle,
|
||||
sender,
|
||||
|
||||
Reference in new issue
Block a user