mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
krata: fix guest destruction
This commit is contained in:
@ -153,7 +153,7 @@ impl NetworkBackend {
|
||||
pub async fn launch(self) -> Result<JoinHandle<()>> {
|
||||
Ok(tokio::task::spawn(async move {
|
||||
info!(
|
||||
"lauched network backend for krata guest {}",
|
||||
"launched network backend for krata guest {}",
|
||||
self.metadata.uuid
|
||||
);
|
||||
if let Err(error) = self.run().await {
|
||||
|
@ -291,6 +291,12 @@ impl AsyncRawSocketChannel {
|
||||
debug!("failed to transmit: would block");
|
||||
continue;
|
||||
}
|
||||
|
||||
// device no longer exists
|
||||
if error.raw_os_error() == Some(6) {
|
||||
break;
|
||||
}
|
||||
|
||||
return Err(anyhow!(
|
||||
"failed to write {} bytes to raw socket: {}",
|
||||
packet.len(),
|
||||
|
Reference in New Issue
Block a user