From d02fa7ad4d506e6d543c820c2d0dc600170e9068 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sun, 6 Feb 2022 20:22:26 -0500 Subject: [PATCH] os: Add some exec.ProcessState stubs --- src/os/exec.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/os/exec.go b/src/os/exec.go index e311692411..030979b202 100644 --- a/src/os/exec.go +++ b/src/os/exec.go @@ -34,6 +34,13 @@ func (p *ProcessState) Success() bool { return false // TODO } +// Sys returns system-dependent exit information about +// the process. Convert it to the appropriate underlying +// type, such as syscall.WaitStatus on Unix, to access its contents. +func (p *ProcessState) Sys() interface{} { + return nil // TODO +} + // ExitCode returns the exit code of the exited process, or -1 // if the process hasn't exited or was terminated by a signal. func (p *ProcessState) ExitCode() int {