diff --git a/init/one.go b/init/one.go index 441f649f..8e352a7f 100644 --- a/init/one.go +++ b/init/one.go @@ -12,13 +12,9 @@ func pidOne() error { c := make(chan os.Signal) signal.Notify(c, syscall.SIGCHLD) - var ( - ws syscall.WaitStatus - rus syscall.Rusage - ) for range c { for { - if pid, err := syscall.Wait4(-1, &ws, syscall.WNOHANG, &rus); err != nil || pid <= 0 { + if pid, err := syscall.Wait4(-1, nil, syscall.WNOHANG, nil); err != nil || pid <= 0 { break } }