only valid once Wait() has returned (or you know Cmd is done)
()
| 63 | |
| 64 | // only valid once Wait() has returned (or you know Cmd is done) |
| 65 | func (cw CmdWrap) ExitCode() int { |
| 66 | state := cw.Cmd.ProcessState |
| 67 | if state == nil { |
| 68 | return -1 |
| 69 | } |
| 70 | return state.ExitCode() |
| 71 | } |
| 72 | |
| 73 | func (cw CmdWrap) ExitSignal() string { |
| 74 | state := cw.Cmd.ProcessState |