![]() After pr #8617, create handler of containerd-shim-runc-v2 will call handleStarted() to record the init process and handle its exit. Init process wouldn't quit so early in normal circumstances. But if this screnario occurs, handleStarted() will call handleProcessExit(), which will cause deadlock because create() had acquired s.mu, and handleProcessExit() will try to lock it again. So, I added a parameter muLocked to handleStarted to indicate whether or not s.mu is currently locked, and thus deciding whether or not to lock it when calling handleProcessExit. Fix: #9103 Signed-off-by: Chen Yiyang <cyyzero@qq.com> |
||
---|---|---|
.. | ||
opts | ||
restart | ||
v2 | ||
events.go | ||
monitor.go | ||
nsmap.go | ||
runtime.go | ||
task.go | ||
typeurl.go |