Result returns the exit code and time of the exit status. An error may be returned here to which indicates there was an error at some point while waiting for the exit status. It does not signify an error with the process itself. If an error is returned, the process may still be running.
()
| 81 | // |
| 82 | // If an error is returned, the process may still be running. |
| 83 | func (s ExitStatus) Result() (uint32, time.Time, error) { |
| 84 | return s.code, s.exitedAt, s.err |
| 85 | } |
| 86 | |
| 87 | // ExitCode returns the exit code of the process. |
| 88 | // This is only valid if Error() returns nil. |
no outgoing calls