mirror of
https://github.com/containerd/containerd.git
synced 2026-07-13 19:13:12 +00:00
In order to make sure that we don't publish task exit events for init processes before we do for execs in that container, we added logic to `processExits` in892dc54bd2to skip these and let the pending exec's `handleStarted` closure process them. However, the conditional logic in `processExits` added was faulty - we should only defer processing of exit events related to init processes, not other execs. Due to this missing condition,892dc54bd2introduced a bug where, if there are many concurrent execs for the same container/init pid, exec exits are skipped and then never published, resulting in hanging clients. This commit adds the missing logic to `processExits`. Signed-off-by: Laura Brehm <laurabrehm@hey.com>