From a16816e8621f17b7e66909641afcb7bcd866ef94 Mon Sep 17 00:00:00 2001 From: eleksir Date: Tue, 31 Mar 2026 00:21:06 +0300 Subject: [PATCH] Avoid busy loop in zombies reap procedure. --- internal/lib/spawn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lib/spawn.go b/internal/lib/spawn.go index 019f31f..8f996e5 100644 --- a/internal/lib/spawn.go +++ b/internal/lib/spawn.go @@ -53,7 +53,7 @@ func (c *MyConfig) CleanZombies() { r := syscall.Rusage{} for { - _, _ = syscall.Wait4(-1, nil, 0, &r) + _, _ = syscall.Wait4(-1, nil, syscall.WNOHANG, &r) time.Sleep(1 * time.Minute) }