forked from rosa/hakurei
@@ -390,8 +390,8 @@ func shimEntrypoint(k syscallDispatcher) {
|
||||
if err := k.containerWait(z); err != nil {
|
||||
sp.destroy()
|
||||
|
||||
var exitError *exec.ExitError
|
||||
if !errors.As(err, &exitError) {
|
||||
exitError, ok := errors.AsType[*exec.ExitError](err)
|
||||
if !ok {
|
||||
if errors.Is(err, context.Canceled) {
|
||||
k.exit(hst.ExitCancel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user