Skip to content

Commit

Permalink
virt-launcher: cleanup hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Toso <[email protected]>
  • Loading branch information
victortoso committed Nov 27, 2023
1 parent 579160d commit f60a292
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/virt-launcher/virt-launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ func main() {
// exits, the wait loop breaks.
mon.RunForever(*qemuTimeout, signalStopChan)

// Allow hooks to gracefully shutdown
hookManager.Shutdown()

// Now that the pid has exited, we wait for the final delete notification to be
// sent back to virt-handler. This delete notification contains the reason the
// domain exited.
Expand Down

0 comments on commit f60a292

Please sign in to comment.