spiegel_podman/pkg/machine/qemu/machine_windows.go
Brent Baude 2cc3be7332
RUN-4539: Change podman module paths
The podman module paths are moving from github.com/containers/podman to
go.podman.io/podman.  This will help with future mobility.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-04-22 14:02:25 -05:00

34 lines
703 B
Go

//go:build windows
package qemu
import (
"bytes"
"fmt"
"go.podman.io/podman/v6/pkg/machine"
)
func isProcessAlive(pid int) bool {
return checkProcessStatus("process", pid, nil) == nil
}
func checkProcessStatus(processHint string, pid int, stderrBuf *bytes.Buffer) error {
active, exitCode := machine.GetProcessState(pid)
if !active {
if stderrBuf != nil {
return fmt.Errorf("%s exited unexpectedly, exit code: %d stderr: %s", processHint, exitCode, stderrBuf.String())
} else {
return fmt.Errorf("%s exited unexpectedly, exit code: %d", processHint, exitCode)
}
}
return nil
}
func sigKill(_ int) error {
return nil
}
func findProcess(_ int) (int, error) {
return -1, nil
}