Skip to content

Commit dd24d76

Browse files
committed
Fix potential containerd panic during graceful shutdown.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 95301fe commit dd24d76

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmd/containerd/command/main_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func handleSignals(ctx context.Context, signals chan os.Signal, serverC chan *se
5858
}
5959
server.Stop()
6060
close(done)
61+
return
6162
}
6263
}
6364
}

0 commit comments

Comments
 (0)