This commit is contained in:
moqsien
2022-09-22 14:10:43 +08:00
parent a2276e1a56
commit e6ea8e4fdd
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ type IProc interface {
StartProc(wait bool)
StopProc(wait bool)
GetProcessInfo() *Info
Clone() (*ProcessPlus, error)
Clone() (IProc, error)
}
type Manager struct {

View File

@@ -81,7 +81,7 @@ func (that *ProcessPlus) Init() (err error) {
}
// Clone 克隆进程
func (that *ProcessPlus) Clone() (*ProcessPlus, error) {
func (that *ProcessPlus) Clone() (IProc, error) {
proc := NewProcess(that.Path, that.Name)
proc.ProcManager = that.ProcManager