Fix the issue of process freezing when there is a large amount of sigpipe signals occurring during containerd process restart.
Signed-off-by: BaiQiuLi <bo.qiuli@zte.com.cn>
This commit is contained in:
parent
bca3554a52
commit
3d4de340d8
|
|
@ -307,6 +307,7 @@ async fn handle_signals(signals: Signals) {
|
||||||
let mut signals = signals.fuse();
|
let mut signals = signals.fuse();
|
||||||
while let Some(sig) = signals.next().await {
|
while let Some(sig) = signals.next().await {
|
||||||
match sig {
|
match sig {
|
||||||
|
SIGPIPE => {}
|
||||||
SIGTERM | SIGINT => {
|
SIGTERM | SIGINT => {
|
||||||
debug!("received {}", sig);
|
debug!("received {}", sig);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue