We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 217f0ee commit f1318faCopy full SHA for f1318fa
crates/runc-shim/src/service.rs
@@ -159,6 +159,9 @@ async fn process_exits(
159
if let Subject::Pid(pid) = e.subject {
160
debug!("receive exit event: {}", &e);
161
let exit_code = e.exit_code;
162
+ let containers = containers.clone();
163
+ let tx = tx.clone();
164
+ tokio::spawn(async move {
165
for (_k, cont) in containers.lock().await.iter_mut() {
166
let bundle = cont.bundle.to_string();
167
// pid belongs to container init process
@@ -204,7 +207,7 @@ async fn process_exits(
204
207
break;
205
208
}
206
209
- }
210
+ }});
211
212
213
monitor_unsubscribe(s.id).await.unwrap_or_default();
0 commit comments