This commit is contained in:
lzh
2025-08-29 17:02:00 +08:00
parent cffb1ee0f4
commit 0d46bb7d07
7 changed files with 10 additions and 8 deletions

View File

@@ -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