From 709ddccc2f82e99e34e33b806f49c208b9b7cbc0 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 20 Apr 2021 19:21:34 +0800 Subject: [PATCH] procutils: WaitZombieLoop: remove unneeded info request --- pkg/util/procutils/zombie.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/util/procutils/zombie.go b/pkg/util/procutils/zombie.go index ebedc9afef..629d964c02 100644 --- a/pkg/util/procutils/zombie.go +++ b/pkg/util/procutils/zombie.go @@ -96,11 +96,7 @@ func WaitZombieLoop(ctx context.Context) { log.Errorf("%s: %s has invalid pid number %q: %v", pname, statPath, pidStr, err) continue } - var ( - status syscall.WaitStatus - rusage syscall.Rusage - ) - pid1, err := syscall.Wait4(pid, &status, 0, &rusage) + pid1, err := syscall.Wait4(pid, nil, 0, nil) if err != nil { log.Errorf("%s: %s: wait error: %v", pname, statPath, err) continue