Streamline events (#287)
* Sync process.State() with the matching events Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Allow requesting events for a specific container Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Sync container state retrieval with other events Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Let containerd take care of calling runtime delete on exit Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Take care of possible race in TestBusyboxTopExecTopKillInit Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
6dd2f1c422
commit
90f827ca10
11 changed files with 342 additions and 212 deletions
|
@ -41,7 +41,7 @@ func (s *Supervisor) exit(t *ExitTask) error {
|
|||
Status: status,
|
||||
Process: proc,
|
||||
}
|
||||
s.SendTask(ne)
|
||||
s.execExit(ne)
|
||||
return nil
|
||||
}
|
||||
container := proc.Container()
|
||||
|
@ -50,7 +50,7 @@ func (s *Supervisor) exit(t *ExitTask) error {
|
|||
Status: status,
|
||||
PID: proc.ID(),
|
||||
}
|
||||
s.SendTask(ne)
|
||||
s.delete(ne)
|
||||
|
||||
ExitProcessTimer.UpdateSince(start)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue