Skip to content

Commit

Permalink
Merge pull request #561 from szaydel/szaydel/add-stub-for-solaris
Browse files Browse the repository at this point in the history
Fix undefined process.Processes when building telegraf on Solaris-based system
  • Loading branch information
shirou authored Jul 28, 2018
2 parents c557538 + 391d5ec commit c06610b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions process/process_fallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ func PidsWithContext(ctx context.Context) ([]int32, error) {
return []int32{}, common.ErrNotImplementedError
}

func Processes() ([]*Process, error) {
return nil, common.ErrNotImplementedError
}

func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
return nil, common.ErrNotImplementedError
}

func NewProcess(pid int32) (*Process, error) {
return nil, common.ErrNotImplementedError
}
Expand Down

0 comments on commit c06610b

Please sign in to comment.