signal: do not print message when dealing with SIG_PIPE#4918
signal: do not print message when dealing with SIG_PIPE#4918crosbymichael merged 1 commit intocontainerd:masterfrom
Conversation
|
Hi @liusdu. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Build succeeded.
|
|
Build succeeded.
|
|
I only see this issue when I shutdown the integration testing manually, because the TestMain uses pipe to read the debug-log-mode testing-containerd process. The testing-containerd process will be leaky and receive the SIG_PIPE broken event and repeat it... |
Hi @fuweid , I encounter this issue when system journal has been rotated, with message |
If we print message when SIG_PIPE occuers in signal handler.
There is a loop {print->SIG_PIPE->print->SIG_PIPE...}, which consume
a lot of cpu time. So do not print message in this situaiton.
Signed-off-by: Liu Hua <[email protected]>
|
@liusdu thanks for the information. What version of docker are you using right now? Is it that the dockerd starts containerd instead of containerd.service? |
|
Build succeeded.
|
|
Yes, I use dockerd as container engine. |
|
@liusdu The change is LGTM. Could you add some comment about the case mentioned by @thaJeztah ? Thanks |
If we print message when SIG_PIPE occuers in signal handler.
There is a loop {print->SIG_PIPE->print->SIG_PIPE...}, which consume
a lot of cpu time. So do not print message in this situaiton.
Signed-off-by: Liu Hua [email protected]