mirror of
https://github.com/containers/podman.git
synced 2025-09-15 04:34:45 +08:00

Paul found logic errors in my earlier code for finding processes and sending signals. Some of the logic errors are associated with how methods behave on different operating systems. Created a darwin and linux approach and a windows approach. Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TESTS NEEDED]
11 lines
147 B
Go
11 lines
147 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package machine
|
|
|
|
import "os"
|
|
|
|
func findProcess(pid int) (*os.Process, error) {
|
|
return os.FindProcess(pid)
|
|
}
|