Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #368 from twelho/containerd-improvements
Browse files Browse the repository at this point in the history
containerd backend improvements
  • Loading branch information
twelho authored Aug 30, 2019
2 parents f042d9a + e0ffbc6 commit 3dee0c7
Show file tree
Hide file tree
Showing 4 changed files with 430 additions and 71 deletions.
4 changes: 2 additions & 2 deletions pkg/container/firecracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func installSignalHandlers(ctx context.Context, m *firecracker.Machine) {
for {
switch s := <-c; {
case s == syscall.SIGTERM || s == os.Interrupt:
fmt.Println("Caught SIGINT, requesting clean shutdown")
fmt.Println("Caught SIGTERM, requesting clean shutdown")
m.Shutdown(ctx)
time.Sleep(constants.STOP_TIMEOUT * time.Second)

Expand All @@ -164,7 +164,7 @@ func installSignalHandlers(ctx context.Context, m *firecracker.Machine) {
m.StopVMM()
}
case s == syscall.SIGQUIT:
fmt.Println("Caught SIGTERM, forcing shutdown")
fmt.Println("Caught SIGQUIT, forcing shutdown")
m.StopVMM()
}
}
Expand Down
Loading

0 comments on commit 3dee0c7

Please sign in to comment.