mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 16:06:51 +08:00
fix pid error
This commit is contained in:
@@ -128,11 +128,11 @@ func (p *ProcessBase) pInit() {
|
|||||||
p.State.manualStopFlag = false
|
p.State.manualStopFlag = false
|
||||||
p.State.startTime = time.Now()
|
p.State.startTime = time.Now()
|
||||||
p.ws = make(map[string]ConnectInstance)
|
p.ws = make(map[string]ConnectInstance)
|
||||||
|
p.Pid = p.p.Pid
|
||||||
p.doOnInit()
|
p.doOnInit()
|
||||||
p.InitPerformanceStatus()
|
p.InitPerformanceStatus()
|
||||||
p.initPsutil()
|
p.initPsutil()
|
||||||
p.initCgroup()
|
p.initCgroup()
|
||||||
p.Pid = p.p.Pid
|
|
||||||
go p.watchDog()
|
go p.watchDog()
|
||||||
go p.readInit()
|
go p.readInit()
|
||||||
go p.monitorHanler()
|
go p.monitorHanler()
|
||||||
|
Reference in New Issue
Block a user