From 18f8f482b19e9fcb0f975d5ee0334b09f1f5d7fa Mon Sep 17 00:00:00 2001 From: Walt Chen Date: Mon, 26 Sep 2022 17:59:42 +0800 Subject: [PATCH] Fix comment of signalAllProcesses for process wait due to sigkill Signed-off-by: Walt Chen --- libcontainer/init_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcontainer/init_linux.go b/libcontainer/init_linux.go index 8e8d3abd9..410fca7ad 100644 --- a/libcontainer/init_linux.go +++ b/libcontainer/init_linux.go @@ -522,7 +522,8 @@ func isWaitable(pid int) (bool, error) { // signalAllProcesses freezes then iterates over all the processes inside the // manager's cgroups sending the signal s to them. -// If s is SIGKILL then it will wait for each process to exit. +// If s is SIGKILL and subreaper is not enabled then it will wait for each +// process to exit. // For all other signals it will check if the process is ready to report its // exit status and only if it is will a wait be performed. func signalAllProcesses(m cgroups.Manager, s os.Signal) error {