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 4a05f70 commit f3d1543Copy full SHA for f3d1543
src/os/exec.go
@@ -34,6 +34,19 @@ func (p *ProcessState) Success() bool {
34
return false // TODO
35
}
36
37
+// Sys returns system-dependent exit information about
38
+// the process. Convert it to the appropriate underlying
39
+// type, such as syscall.WaitStatus on Unix, to access its contents.
40
+func (p *ProcessState) Sys() interface{} {
41
+ return nil // TODO
42
+}
43
+
44
+// ExitCode returns the exit code of the exited process, or -1
45
+// if the process hasn't exited or was terminated by a signal.
46
+func (p *ProcessState) ExitCode() int {
47
+ return -1 // TODO
48
49
50
type Process struct {
51
Pid int
52
0 commit comments