containerd/supervisor/monitor_windows.go
John Howard 3d8e37cf9d Making it not crash on Windows
Signed-off-by: John Howard <jhoward@microsoft.com>
2016-02-28 19:02:24 -08:00

34 lines
759 B
Go

package supervisor
import (
"errors"
"github.com/docker/containerd/runtime"
)
// TODO Windows: This is going to be very problematic to port to Windows.
// Windows golang has no concept of EpollEvent/EpollCtl etc as in the
// Linux implementation. @crosbymichael - Help needed.
func NewMonitor() (*Monitor, error) {
// During Windows bring-up, don't error out other binary bombs immediately.
return &Monitor{}, nil
}
type Monitor struct {
}
func (m *Monitor) Exits() chan runtime.Process {
return nil
}
func (m *Monitor) Monitor(p runtime.Process) error {
return errors.New("Monitor not implemented on Windows")
}
func (m *Monitor) Close() error {
return errors.New("Monitor Close() not implemented on Windows")
}
func (m *Monitor) start() {
}