mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 11:33:59 +00:00
os: Add some exec.ProcessState stubs
This commit is contained in:
committed by
Ron Evans
parent
c55c996c5d
commit
42ae9a665f
@@ -34,6 +34,13 @@ func (p *ProcessState) Success() bool {
|
|||||||
return false // TODO
|
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
|
// ExitCode returns the exit code of the exited process, or -1
|
||||||
// if the process hasn't exited or was terminated by a signal.
|
// if the process hasn't exited or was terminated by a signal.
|
||||||
func (p *ProcessState) ExitCode() int {
|
func (p *ProcessState) ExitCode() int {
|
||||||
|
|||||||
Reference in New Issue
Block a user