mirror of
https://github.com/rancher/os.git
synced 2025-09-16 06:59:12 +00:00
Remove unneeded code
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user