fix comments

Signed-off-by: yaozhenxiu <946666800@qq.com>
This commit is contained in:
yaozhenxiu 2022-11-03 22:52:41 +08:00
parent 4e3d7e0aba
commit 902b96cf25

View File

@ -91,7 +91,7 @@ type Monitor struct {
subscribers map[chan runc.Exit]*subscriber subscribers map[chan runc.Exit]*subscriber
} }
// Start starts the command a registers the process with the reaper // Start starts the command and registers the process with the reaper
func (m *Monitor) Start(c *exec.Cmd) (chan runc.Exit, error) { func (m *Monitor) Start(c *exec.Cmd) (chan runc.Exit, error) {
ec := m.Subscribe() ec := m.Subscribe()
if err := c.Start(); err != nil { if err := c.Start(); err != nil {