Conversation
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
|
Is this related to / trying to fix; |
|
containerd/containerd#11128 these pr will reduce the occurrence of bugs. |
| go func() { | ||
| if wg != nil { | ||
| defer wg.Done() | ||
| runtime.LockOSThread() |
There was a problem hiding this comment.
Well. Go runtime will create new thread if all existing threads are in kernel mode. The openAt syscall on fifo won't last too long in practise because kubelet always starts container after created containerd/containerd#11128.
I would like to wait for Go runtime to handle idle threads instead of using LockOSThread here, because it may cause unexpected issue. For example, in process X, sub-thread A invokes exec process Y with Pdeathsig: SIGKILL. If the sub-thread A is killed by LockOSThread, the process Y will be killed as well. It's hard to tell who sends signal to process Y in production. So, I am not a fan to use LockOSThread.
@thaJeztah
try to fix this issue golang/go#14592