From 3d4de340d83aa06dff24fbf73d7d584ebe77c7ec Mon Sep 17 00:00:00 2001 From: BaiQiuLi Date: Tue, 30 Jan 2024 10:52:32 +0800 Subject: [PATCH] Fix the issue of process freezing when there is a large amount of sigpipe signals occurring during containerd process restart. Signed-off-by: BaiQiuLi --- crates/shim/src/asynchronous/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/shim/src/asynchronous/mod.rs b/crates/shim/src/asynchronous/mod.rs index 5720814..647d7f8 100644 --- a/crates/shim/src/asynchronous/mod.rs +++ b/crates/shim/src/asynchronous/mod.rs @@ -307,6 +307,7 @@ async fn handle_signals(signals: Signals) { let mut signals = signals.fuse(); while let Some(sig) = signals.next().await { match sig { + SIGPIPE => {} SIGTERM | SIGINT => { debug!("received {}", sig); }