Skip to content

Commit f3d1543

Browse files
committed
os: Add some exec.ProcessState stubs
1 parent 4a05f70 commit f3d1543

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/os/exec.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ func (p *ProcessState) Success() bool {
3434
return false // TODO
3535
}
3636

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+
3750
type Process struct {
3851
Pid int
3952
}

0 commit comments

Comments
 (0)