mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 07:56:50 +08:00
logic edit ,bug fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user