Refactor epoll monitor for generic use

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2016-09-22 14:03:45 -07:00
parent b6bf350a07
commit 97c3c3847a
10 changed files with 288 additions and 297 deletions

View File

@@ -29,7 +29,7 @@ func (s *Supervisor) addProcess(t *AddProcessTask) error {
if err != nil {
return err
}
if err := s.monitorProcess(process); err != nil {
if err := s.monitor.Add(process); err != nil {
return err
}
t.StartResponse <- StartResponse{}