mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 16:06:51 +08:00
update
This commit is contained in:
@@ -39,7 +39,7 @@ func (p *ProcessPty) Start() (err error) {
|
||||
}
|
||||
}()
|
||||
if ok := p.SetState(eum.ProcessStateStart, func() bool {
|
||||
return p.State.State != 1
|
||||
return p.State.State != eum.ProcessStateStart
|
||||
}); !ok {
|
||||
log.Logger.Warnw("进程已在运行,跳过启动")
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user