Open jgbooks opened 3 years ago
If the process cannot be found, it is better to return an error.
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.
nil
If the process cannot be found, it is better to return an error.