1
0
mirror of https://github.com/rancher/os.git synced 2025-08-14 21:15:15 +00:00

Remove unneeded code

This commit is contained in:
Darren Shepherd 2015-12-22 17:11:25 -07:00
parent cd2829d220
commit ee257f944e

View File

@ -12,13 +12,9 @@ func pidOne() error {
c := make(chan os.Signal) c := make(chan os.Signal)
signal.Notify(c, syscall.SIGCHLD) signal.Notify(c, syscall.SIGCHLD)
var (
ws syscall.WaitStatus
rus syscall.Rusage
)
for range c { for range c {
for { 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 break
} }
} }