cmd/fshim/ipc: install signal handler on shim start
All checks were successful
test / test (push) Successful in 20s
All checks were successful
test / test (push) Successful in 20s
Getting killed at this point will result in inconsistent state. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
@@ -179,7 +179,11 @@ func (a *app) Wait() (int, error) {
|
||||
// alternative exit path when kill was unsuccessful
|
||||
case err := <-a.shim.WaitFallback():
|
||||
r = 255
|
||||
fmsg.Printf("cannot terminate shim on faulted setup: %v", err)
|
||||
if err != nil {
|
||||
fmsg.Printf("cannot terminate shim on faulted setup: %v", err)
|
||||
} else {
|
||||
fmsg.VPrintln("alternative exit path selected")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user