2016-02-26 03:18:10 +00:00
|
|
|
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) {
|
2016-02-29 02:28:09 +00:00
|
|
|
// During Windows bring-up, don't error out other binary bombs immediately.
|
|
|
|
return &Monitor{}, nil
|
2016-02-26 03:18:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
|
|
|
}
|