Add ErrProcessDone error

This is used in upstream Go's `os` package now.
This commit is contained in:
Elliott Sales de Andrade
2022-08-06 16:53:48 -04:00
committed by Ron Evans
parent 2365c7cfec
commit c2f437e0b7
+7 -1
View File
@@ -1,6 +1,9 @@
package os package os
import "syscall" import (
"errors"
"syscall"
)
type Signal interface { type Signal interface {
String() string String() string
@@ -24,6 +27,9 @@ type ProcAttr struct {
Sys *syscall.SysProcAttr Sys *syscall.SysProcAttr
} }
// ErrProcessDone indicates a Process has finished.
var ErrProcessDone = errors.New("os: process already finished")
type ProcessState struct { type ProcessState struct {
} }