()
| 71 | } |
| 72 | |
| 73 | func (cw CmdWrap) ExitSignal() string { |
| 74 | state := cw.Cmd.ProcessState |
| 75 | if state == nil { |
| 76 | return "" |
| 77 | } |
| 78 | if ws, ok := state.Sys().(syscall.WaitStatus); ok { |
| 79 | if ws.Signaled() { |
| 80 | return unixutil.GetSignalName(ws.Signal()) |
| 81 | } |
| 82 | } |
| 83 | return "" |
| 84 | } |
| 85 | |
| 86 | func (cw CmdWrap) KillGraceful(timeout time.Duration) { |
| 87 | if cw.Cmd.Process == nil { |
nothing calls this directly
no test coverage detected