Skip to content

Commit

Permalink
Add ErrNotImplementedError to Darwin, FreeBSD, and OpenBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkirsch committed Jan 4, 2018
1 parent 482ca3a commit 6c35887
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions process/process_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func (p *Process) Name() (string, error) {

return common.IntToString(k.Proc.P_comm[:]), nil
}
func (p *Process) Tgid() (int32, error) {
return 0, common.ErrNotImplementedError
}
func (p *Process) Exe() (string, error) {
lsof_bin, err := exec.LookPath("lsof")
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions process/process_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func (p *Process) Name() (string, error) {

return common.IntToString(k.Comm[:]), nil
}
func (p *Process) Tgid() (int32, error) {
return 0, common.ErrNotImplementedError
}
func (p *Process) Exe() (string, error) {
return "", common.ErrNotImplementedError
}
Expand Down
3 changes: 3 additions & 0 deletions process/process_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func (p *Process) Name() (string, error) {

return common.IntToString(k.Comm[:]), nil
}
func (p *Process) Tgid() (int32, error) {
return 0, common.ErrNotImplementedError
}
func (p *Process) Exe() (string, error) {
return "", common.ErrNotImplementedError
}
Expand Down

0 comments on commit 6c35887

Please sign in to comment.