diff --git a/cmd/pk-mount/pkmount.go b/cmd/pk-mount/pkmount.go index 7c3cc8c37..96b334927 100644 --- a/cmd/pk-mount/pkmount.go +++ b/cmd/pk-mount/pkmount.go @@ -256,6 +256,11 @@ func awaitQuitKey(done chan<- bool) { return } if buf[0] == 'q' { + if *debug { + stacks := make([]byte, 1<<20) + stacks = stacks[:runtime.Stack(stacks, true)] + os.Stderr.Write(stacks) + } done <- true return }