findprocess

package
v1.14.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package findprocess provides an os.FindProcess wrapper that portably detects non-existent processes.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("process not found")

ErrNotFound represents a target process that does not exist or is otherwise not available to the calling process.

Functions

func FindProcess

func FindProcess(pid int) (process *os.Process, err error)

FindProcess wraps os.Findprocess 1 to return a public ErrNotFound if the process does not exist. The returned process will be nil if and only if the returned err is non-nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL