mirror of https://github.com/databricks/cli.git
16 lines
242 B
Go
16 lines
242 B
Go
|
package process
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type ErrProcessNotFound struct {
|
||
|
Pid int
|
||
|
}
|
||
|
|
||
|
func (e ErrProcessNotFound) Error() string {
|
||
|
return fmt.Sprintf("process with pid %d does not exist", e.Pid)
|
||
|
}
|
||
|
|
||
|
func Wait(pid int) error {
|
||
|
return waitForPid(pid)
|
||
|
}
|