mirror of
https://github.com/rancher/os.git
synced 2025-08-02 07:24:28 +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)
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user