mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
procutils: WaitZombieLoop: use const str "1" for my pid
This commit is contained in:
@@ -16,7 +16,6 @@ package procutils
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -34,7 +33,7 @@ func WaitZombieLoop(ctx context.Context) {
|
||||
log.Infof("My pid is not 1 and no need to wait zombies")
|
||||
return
|
||||
}
|
||||
myPidStr := fmt.Sprintf("%d", myPid)
|
||||
const myPidStr = "1"
|
||||
|
||||
tick := time.NewTicker(31 * time.Second)
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user