Merge pull request #918 from miaoyq/del-redundant-waitExit
delete the redundant func "waitExit"
This commit is contained in:
commit
57a3788c87
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user