Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Add netbsd support via mount_procfs(8) #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iamleot
Copy link

@iamleot iamleot commented Jun 4, 2022

This PR adds NetBSD support via mount_procfs(8).

Completely based on Linux one.

(It would be probably better to avoid mount_procfs(8) because on some setup it can be not present (i.e. procfs is optional) but that's a possible starting point in order to make go-ps working on NetBSD too!)

Completely based on Linux one.
@iamleot
Copy link
Author

iamleot commented Jun 4, 2022

Here a complete transcript of corresponding go test -v:

$ go test -v
=== RUN   TestFindProcess
--- PASS: TestFindProcess (0.00s)
=== RUN   TestProcesses
--- PASS: TestProcesses (0.01s)
=== RUN   TestUnixProcess_impl
--- PASS: TestUnixProcess_impl (0.00s)
PASS
ok      github.com/mitchellh/go-ps      0.013s

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant