From 42ae9a665fb171b4e19c55250449801982041e6d 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 e3116924..030979b2 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 {