You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The process exited, we can continue with the rest of the cleanup.
567
566
// We could use select with ctx.Done() to wait for cancellation, but if the process is not exited the whole cleanup will be in a bad state and will result in unexpected behavior.
568
-
<-s.process.Exit.Done
567
+
<-s.process.Exit.Done()
569
568
570
569
uffdStopErr:=s.Resources.memory.Stop()
571
570
ifuffdStopErr!=nil {
@@ -907,8 +906,8 @@ func (s *Sandbox) WaitForExit(
907
906
returnfmt.Errorf("waiting for exit took too long")
908
907
case<-ctx.Done():
909
908
returnnil
910
-
case<-s.exit.Done:
911
-
_, err:=s.exit.Result()
909
+
case<-s.exit.Done():
910
+
err:=s.exit.Error()
912
911
iferr==nil {
913
912
returnnil
914
913
}
@@ -942,8 +941,8 @@ func (s *Sandbox) WaitForEnvd(
942
941
syncCancel(fmt.Errorf("syncing took too long"))
943
942
case<-syncCtx.Done():
944
943
return
945
-
case<-s.process.Exit.Done:
946
-
_, err:=s.process.Exit.Result()
944
+
case<-s.process.Exit.Done():
945
+
err:=s.process.Exit.Error()
947
946
948
947
syncCancel(fmt.Errorf("fc process exited prematurely: %w", err))
0 commit comments