mirror of
https://github.com/coder/coder.git
synced 2026-06-07 15:08:20 +00:00
edeb9bb42a
Fixing up some linting errors that show up on Darwin, but not in CI.
21 lines
354 B
Go
21 lines
354 B
Go
package agentproc
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
type Syscaller interface {
|
|
SetPriority(pid int32, priority int) error
|
|
GetPriority(pid int32) (int, error)
|
|
Kill(pid int32, sig syscall.Signal) error
|
|
}
|
|
|
|
// nolint: unused // used on some but no all platforms
|
|
const defaultProcDir = "/proc"
|
|
|
|
type Process struct {
|
|
Dir string
|
|
CmdLine string
|
|
PID int32
|
|
}
|