mitchellh / go-ps

Find, list, and inspect processes from Go (golang).
MIT License
1.46k stars 250 forks source link

If the process cannot be found, it is better to return an error. #42

Open jgbooks opened 3 years ago

jgbooks commented 3 years ago

If the process cannot be found, it is better to return an error.

cfergeau commented 3 years ago

This is an API breakage, dunno how bad the impact would be on go-ps users. Windows and macOS would still return nil when the process is not found, so this change would make the API inconsistent on the various OSes.