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:
parent
cd2829d220
commit
ee257f944e
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user