logic edit ,bug fix

This commit is contained in:
liuzhihang1
2025-02-13 10:35:34 +08:00
parent 65730ecb46
commit 5055cca3d9
6 changed files with 19 additions and 38 deletions

View File

@@ -145,11 +145,3 @@ func NewProcessPty(pconfig model.Process) *ProcessBase {
processPty.setProcessConfig(pconfig)
return &p
}
func RunNewProcessPty(pconfig model.Process) (*ProcessBase, error) {
processPty := NewProcessPty(pconfig)
if err := processPty.Start(); err != nil {
return nil, err
}
return processPty, nil
}