We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48c7973 commit b930fe2Copy full SHA for b930fe2
src/os/exec_plan9.go
@@ -136,3 +136,8 @@ func (p *ProcessState) String() string {
136
}
137
return "exit status: " + p.status.Msg
138
139
+
140
+// ExitCode return the exit code of a finished process.
141
+func (p *ProcessState) ExitCode() int {
142
+ return p.status.ExitStatus()
143
+}
src/os/exec_posix.go
@@ -106,3 +106,8 @@ func (p *ProcessState) String() string {
106
107
return res
108
109
110
111
112
113
0 commit comments