Skip to content

Commit a48d736

Browse files
committed
fix
1 parent 4363cc6 commit a48d736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/workspacekit/cmd/rings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ var ring0Cmd = &cobra.Command{
159159

160160
_ = cmd.Process.Signal(unix.SIGTERM)
161161
time.Sleep(ring1ShutdownTimeout)
162-
if cmd.Process == nil {
162+
if cmd.Process == nil || cmd.ProcessState.Exited() {
163163
return
164164
}
165165
log.WithField("status", cmd.ProcessState).WithField("pid", cmd.Process.Pid).Info("process status")

0 commit comments

Comments
 (0)