From e4e80fb7b7710df663ad80a33df652d4ea4e7660 Mon Sep 17 00:00:00 2001 From: Yanqiang Miao Date: Fri, 26 May 2017 16:55:49 +0800 Subject: [PATCH] delete the redundant Signed-off-by: Yanqiang Miao --- linux/shim/service.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/linux/shim/service.go b/linux/shim/service.go index be4a14a66..fb460cb3b 100644 --- a/linux/shim/service.go +++ b/linux/shim/service.go @@ -56,7 +56,6 @@ func (s *Service) Create(ctx context.Context, r *shimapi.CreateRequest) (*shimap ExitCh: make(chan int, 1), } reaper.Default.Register(pid, cmd) - go s.waitExit(process, pid, cmd) s.events <- &task.Event{ Type: task.Event_CREATE, ID: r.ID, @@ -115,7 +114,6 @@ func (s *Service) Exec(ctx context.Context, r *shimapi.ExecRequest) (*shimapi.Ex } reaper.Default.RegisterNL(pid, cmd) reaper.Default.Unlock() - go s.waitExit(process, pid, cmd) s.events <- &task.Event{ Type: task.Event_EXEC_ADDED, ID: s.id,